// configure MDR to use an in-memory storage implementation
System.setProperty(
"org.netbeans.mdr.storagemodel.StorageFactoryClassName",
"org.netbeans.mdr.persistence.memoryimpl.StorageFactoryImpl");
final MDRManager mdrManager = MDRManager.getDefault();
if (mdrManager == null)
{
throw new RepositoryFacadeException("Could not retrieve the MDR manager");
}
this.repository = mdrManager.getDefaultRepository();
}