public static License read(final String license){
  final String trimmedLicense=license.trim();
  if (sLicenses.containsKey(trimmedLicense)) {
    return sLicenses.get(trimmedLicense);
  }
 else {
    throw new IllegalStateException(String.format("no such license available: %s, did you forget to register it?",trimmedLicense));
  }
}

public static License read ( final String license ) { final String trimmedLicense = license . trim ( ) ; if ( sLicenses . containsKey ( trimmedLicense ) ) { return sLicenses . get ( trimmedLicense ) ; } else { throw new IllegalStateException ( String . format ( "no such license available: %s, did you forget to register it?" , trimmedLicense ) ) ; } }
get a license by name
