ContentRepositoryRegistry registry = ContentRepositoryRegistry.getInstance();
ContentRepository repo = registry.getRepository(LoginManager.getPrimary());
ContentCollection audioCollection;
try {
ContentCollection c = repo.getUserRoot();
audioCollection = (ContentCollection) c.getChild("audio");
if (audioCollection == null) {
audioCollection = (ContentCollection) c.createChild("audio", Type.COLLECTION);
}
} catch (ContentRepositoryException e) {
error("ContentRepositoryException " + e.getMessage());
return;
}