* @return A UserManager, as discovered via JNDI.
*/
public static RoleManager getPlanetsRoleManager() {
try{
Context jndiContext = new javax.naming.InitialContext();
RoleManager rm = (RoleManager) PortableRemoteObject.narrow(
jndiContext.lookup("planets-project.eu/RoleManager/remote"), RoleManager.class);
return rm;
}catch (NamingException e) {
log.severe("Failure during lookup of the UserManager PortableRemoteObject: "+e.toString());
return null;