else logger.debug("Rolename ( " + rolename +") doesn't exist in EXT_ROLES");
}
Role[] rolesArr = new Role[roles.size()];
rolesArr = (Role[]) roles.toArray(rolesArr);
UserFunctionality userFunct = new UserFunctionality();
userFunct.setCode("ufr_" + userId);
userFunct.setDescription("User Functionality Root");
userFunct.setName(userId);
userFunct.setPath("/" + userId);
//userFunct.setExecRoles(rolesArr);
ILowFunctionalityDAO functdao = DAOFactory.getLowFunctionalityDAO();
functdao.insertUserFunctionality(userFunct);
} catch (Exception e) {
logger.error("Error while creating user functionality root", e);