code: private static IGeneratorSet asGeneratorSet( JsonValue json)
      {
      try
        {
        IGeneratorSet generators = null;
        if( json != null && json.getValueType() == OBJECT)
          {
          generators = GeneratorSetJson.asGeneratorSet( (JsonObject) json);
          }
  
        return generators;
        }
      catch( Exception e)
        {
        throw new ProjectException( "Error reading generators", e);
        }
      }
docs: Returns the generator set represented by the given JSON value.