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

public static ApplicationType fromString ( String type ) { if ( type != null ) { for ( ApplicationType applicationType : ApplicationType . values ( ) ) { if ( type . equalsIgnoreCase ( applicationType . type ) ) { return applicationType ; } } } return null ; }
translates a string into an application type .
