copper-server-api/src/main/java/com/pogeyan/cmis/api/BaseMessage.java
/**
	 * Creates the {@link BaseMessage} for the given type, action, message body
	 * and baggage.
	 *
	 * @param typeName
	 *            the type name
	 * @param actionName
	 *            the action name
	 * @param messageBody
	 *            the message body
	 * @param baggage
	 *            the additional attributes that each {@link BaseMessage} has to
	 *            carry
	 * @return the base message
	 */
Creates the  BaseMessage for the given type, action, message body
and baggage.


Creates the BaseMessage for the given type action message body and baggage .
public static BaseMessage create(String typeName, final String actionName, final Object messageBody,
			final HashMap<String, Object> baggage) {
		BaseMessage bm = new BaseMessage();
		bm.setMessageId(Long.toString(Helpers.rand()));
		bm.setTypeName(typeName);
		bm.setActionName(actionName);
		bm.setMessageType(MessageType.REQUEST);
		bm.setMessageInternal(messageBody);
		bm.baggage = baggage;
		return bm;
	}
public static BaseMessage create ( String typeName , final String actionName , final Object messageBody , final HashMap < String , Object > baggage ) { BaseMessage bm = new BaseMessage ( ) ; bm . setMessageId ( Long . toString ( Helpers . rand ( ) ) ) ; bm . setTypeName ( typeName ) ; bm . setActionName ( actionName ) ; bm . setMessageType ( MessageType . REQUEST ) ; bm . setMessageInternal ( messageBody ) ; bm . baggage = baggage ; return bm ; }
Creates the {@link BaseMessage} for the given type, action, message body
 and baggage.
Creates the { @link BaseMessage } for the given type action message body and baggage .