code: public static ClientFactory getClientFactory(String persistenceUnit, Map<String, Object> puProperties,final KunderaMetadata kunderaMetadata)
      {
          ClientFactory clientFactory = instantiateClientFactory(persistenceUnit, puProperties, kunderaMetadata);
          clientFactories.put(persistenceUnit, clientFactory);
          return clientFactory;
      }
docs: Gets the client factory.
  
  @param persistenceUnit
  the persistence unit
  @return the client factory