legacy/src/main/java/thredds/catalog/MetadataType.java
public static MetadataType getType(String name) {
    if (name == null) return null;
    MetadataType type = findType( name );
    return type != null ? type : new MetadataType( name, false );
  }
public static MetadataType getType(String name) {
    if (name == null) return null;
    MetadataType type = findType( name );
    return type != null ? type : new MetadataType( name, false );
  }
Return a MetadataType that matches the given name by either matching
a known type (ignoring case) or creating an unknown type.

@param name name of the desired MetadataType
@return the named MetadataType or null if given name is null.