String serverHostAndPort = manager.getServerNameAndPort();
String baseURL = "wla://avatarbaseart/";
URL url = AssetUtils.getAssetURL(baseURL, serverHostAndPort);
WorldManager worldManager = ClientContextJME.getWorldManager();
worldManager.addUserData(Repository.class, new Repository(worldManager,
new WonderlandAvatarCache(url.toExternalForm(),
ClientContext.getUserDirectory("AvatarCache"))));
} catch (MalformedURLException excp) {
logger.log(Level.WARNING, "Unable to form avatar base URL", excp);
} catch(Exception e) {
logger.log(Level.SEVERE,"Exception, are you using JDK 5 ?", e);