for (int i = 0; i < n; i++) {
JID jid = new JID(userlistExtension.getValue(USER_KEY + i));
int colorID = Integer.parseInt(userlistExtension
.getValue(USER_COLOR_KEY + i));
Permission permission = Permission.valueOf(userlistExtension
.getValue(USER_PERMISSION_KEY + i));
users.add(new UserListEntry(jid, colorID, permission));
}