code: public JsPermittedChainUsage fromString(String name)
    {
      JsPermittedChainUsage result = null;
      
      for (int i = 0; i < _set.length && result == null; i++)
      {
        if (name.equals(_set[i].toString())) result = _set[i];
      }
      
      return result;
    }
docs: This method converts a string into an instance of the enum. If the string
  is not valid for this enum then null is returned.
  
  @param name The name of one of the enums.
  @return     The matchine enum for the string.