KarmaMetadataManager metadataManager = null;
UpdateContainer updateContainer = new UpdateContainer();
try {
metadataManager = new KarmaMetadataManager();
metadataManager.register(new UserUploadedMetadata(), updateContainer);
metadataManager.register(new UserPreferencesMetadata(), updateContainer);
metadataManager.register(new UserConfigMetadata(), updateContainer);
} catch (KarmaException e) {
logger.error("Unable to complete Karma set up: ", e);
}