public static PropertyManager create(String namespace, PropertyStore store) throws MetaException, NoSuchObjectException {
    final Constructor<? extends PropertyManager> ctor;
    synchronized (NSMANAGERS) {
      ctor = NSMANAGERS.get(namespace);
    }
    if (ctor == null) {
      throw new NoSuchObjectException("no PropertyManager namespace is declared, namespace " + namespace);
    }
    if (store == null) {
      throw new NoSuchObjectException("no PropertyStore exists " + namespace);
    }
    try {
      return ctor.newInstance(namespace, store);
    } catch (Exception xany) {
      LOGGER.error("PropertyManager creation failed " + namespace, xany);
      throw new MetaException("PropertyManager creation failed, namespace " + namespace);
    }
  }
Creates an instance of manager using its declared namespace.
@param namespace the manager&quot;s namespace
@param store the property store
@return a property manager instance
@throws MetaException if the manager creation fails
@throws NoSuchObjectException if the store is null or no constructor was declared
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/properties/PropertyManager.java