public static ClientType fromString(String type){
  if (type != null) {
    for (    ClientType clientType : ClientType.values()) {
      if (type.equalsIgnoreCase(clientType.type)) {
        return clientType;
      }
    }
  }
  return null;
}

public static ClientType fromString ( String type ) { if ( type != null ) { for ( ClientType clientType : ClientType . values ( ) ) { if ( type . equalsIgnoreCase ( clientType . type ) ) { return clientType ; } } } return null ; }
gets the client type from a string .
