int nUsers = m_userPermissions.size();
CUserPermissions[] userPermissions = new CUserPermissions[nUsers];
int iUser = 0;
for (Map.Entry<RoleId, List<CPermission>> entry : m_userPermissions.entrySet()) {
RoleId userId = entry.getKey();
userPermissions[iUser++] = new CUserPermissions(userId.toString(), getPermissions(entry.getValue()));
}
PermissionsHolder permissionsHolder = new PermissionsHolder();
permissionsHolder.setUserPermissions(userPermissions);
updatedData.setPermissions(permissionsHolder);