ret = globalconfigurationsession.getCachedGlobalConfiguration(administrator);
if (initialContext == null) {
initialContext = new InitialContext();
}
Context myenv = (Context) initialContext.lookup("java:comp/env");
ret.initialize( (String) myenv.lookup("ADMINDIRECTORY"),
WebConfiguration.getAvailableLanguages(), (String) myenv.lookup("AVAILABLETHEMES"),
""+WebConfiguration.getPublicHttpPort(), ""+WebConfiguration.getPrivateHttpsPort(),
(String) myenv.lookup("PUBLICPROTOCOL"),(String) myenv.lookup("PRIVATEPROTOCOL"));
return ret;
}