final MetaInfoManager mim;
// if we use the ecm role manager then we don't wrap it inside a service meta manager!
if ( roleManager instanceof ECMRoleManager )
{
final ECMMetaInfoManager metaManager =
new ECMMetaInfoManager( new Role2MetaInfoManager( roleManager ), classLoader );
metaManager.enableLogging( m_loggerManager.getLoggerForCategory( "system.meta" ) );
mim = metaManager;
}
else
{
final ServiceMetaManager metaManager =
new ServiceMetaManager( new Role2MetaInfoManager( roleManager ), classLoader );
metaManager.enableLogging( m_loggerManager.getLoggerForCategory( "system.meta" ) );
metaManager.initialize();
mim = metaManager;
}
assumeOwnership( mim );
m_metaInfoManager = mim;