copper-server-api/src/main/java/com/pogeyan/cmis/api/MessageType.java
/**
	 * Gets a MessageType from id or <tt>null</tt> if the requested type doesn't
	 * exist.
	 * 
	 * @param id
	 *            String
	 * @return MessageType
	 */
Gets a MessageType from id or null if the requested type doesn't
exist.

@param id
String
@return MessageType
Gets a MessageType from id or null if the requested type doesn ' t exist . @param id String @return MessageType
public static MessageType fromId(final String id) {
		if (id != null) {
			for (MessageType type : MessageType.values()) {
				if (id.equalsIgnoreCase(type.name())) {
					return type;
				}
			}
		}
		return null;
	}
public static MessageType fromId ( final String id ) { if ( id != null ) { for ( MessageType type : MessageType . values ( ) ) { if ( id . equalsIgnoreCase ( type . name ( ) ) ) { return type ; } } } return null ; }
Gets a MessageType from id or <tt>null</tt> if the requested type doesn't
 exist.
Gets a MessageType from id or <tt > null< / tt > if the requested type doesn ' t exist .