AvatarRegistry registry = AvatarRegistry.getAvatarRegistry();
ContentCollection bc = registry.getAvatarCollection();
try {
imiCollection = (ContentCollection) bc.getChild("imi");
if (imiCollection == null) {
imiCollection = (ContentCollection) bc.createChild("imi", Type.COLLECTION);
}
logger.info("Using local IMI avatar collection " +
imiCollection.getPath());
} catch (ContentRepositoryException excp) {
logger.log(Level.WARNING, "Unable to fetch imi/ collection", excp);