code: public static FileOrder fromName(final String name) {
          if (name == null) {
              return null;
          }
          for (final FileOrder fo : INSTANCES) {
              if (fo.name.equals(name)) {
                  return fo;
              }
          }
          throw new IllegalArgumentException("Unknown name: " + name);
      }
docs: Returns the instance by it's name or throws an exception otherwise.
  
  @param name
  Unique name or NULL.
  
  @return Enumeration instance or NULL (if argument name was NULL).