protected ResourceInstanceFactory getResourceFactory() {
    //todo: inject
    return new ResourceInstanceFactoryImpl();
  }
Get the resource factory instance.
@return  a factory for creating resource instances
ambari-server/src/main/java/org/apache/ambari/server/api/handlers/QueryCreateHandler.java