if (client.getFunctions() == null) {
Map<String, TSFunction> loginActionlist = new HashMap<String, TSFunction>();
List<TSRoleUser> rUsers = systemService.findByProperty(
TSRoleUser.class, "TSUser.id", user.getId());
for (TSRoleUser ru : rUsers) {
TSRole role = ru.getTSRole();
List<TSRoleFunction> roleFunctionList = systemService
.findByProperty(TSRoleFunction.class, "TSRole.id",
role.getId());
for (TSRoleFunction roleFunction : roleFunctionList) {
TSFunction function = roleFunction.getTSFunction();
loginActionlist.put(function.getId(), function);
}
}