code: public JsonElement generate() {
          if(schema.getType().get(0).equals(TYPE_OBJECT)) {
              return new ObjectGenerator(schema, configuration).generate();
          }
          if(schema.getType().get(0).equals(TYPE_ARRAY)) {
              return new ArrayGenerator(schema, configuration).generate();
          }
  
  
  
          throw new UnsupportedOperationException("Use Main generator only for full valid JSON object or array.");
      }
docs: TODO make a choice for multi typed elements