KernelMetaDataRepository kmdr = kernel.getMetaDataRepository();
MutableMetaDataRepository repository = kmdr.getMetaDataRepository();
MetaDataRetrieval retrieval = repository.getMetaDataRetrieval(ScopeKey.DEFAULT_SCOPE);
if (retrieval == null)
{
retrieval = new MemoryMetaDataLoader(ScopeKey.DEFAULT_SCOPE);
repository.addMetaDataRetrieval(retrieval);
}
if (retrieval instanceof MutableMetaData)
{
MutableMetaData mmd = (MutableMetaData)retrieval;