factoryState.setConfigurationProperties( cfg.getProperties() );
factoryState.setServiceManager( new StandardServiceManager( cfg ) );
factoryState.setAllIndexesManager( new IndexManagerHolder() );
factoryState.setErrorHandler( createErrorHandler( cfg ) );
factoryState.setInstanceInitializer( cfg.getInstanceInitializer() );
factoryState.setTimingSource( new DefaultTimingSource() );
factoryState.setIndexMetadataComplete( cfg.isIndexMetadataComplete() );
factoryState.setTransactionManagerExpected( cfg.isTransactionManagerExpected() );
factoryState.setIdProvidedImplicit( cfg.isIdProvidedImplicit() );
factoryState.setIndexManagerFactory( cfg.getIndexManagerFactory() );
}