public HashMap<String, String> initializeRoles(String sessionId)
throws SessionExpiredException {
IRoleManagement rm = MapperRegistry.getInstance().getRoleManagement();
HashMap <String, String> result = new HashMap<String, String>();
try {
for (Role r: rm.findAll()) {
result.put(r.getName(), r.getId());
}
} catch (Throwable t) {
}
return result;