* @return new instance of clientFactory
*/
private static ClientFactory instantiateClientFactory(String persistenceUnit, Map<String, Object> puProperties,
final KunderaMetadata kunderaMetadata)
{
ClientFactory clientFactory = null;
logger.info("Initializing client factory for: " + persistenceUnit);
PersistenceUnitMetadata persistenceUnitMetadata = kunderaMetadata.getApplicationMetadata()
.getPersistenceUnitMetadata(persistenceUnit);
String kunderaClientFactory = puProperties != null ? (String) puProperties
.get(PersistenceProperties.KUNDERA_CLIENT_FACTORY) : null;