return EntryUtils.convertAllEntryElementsToObject(value);
}
@Override
public void setUserAttribute(String username, String attributename, Object... value) throws UserNotFoundException {
UserData user = doFindUser(username);
EntryValue entryValue = new EntryValue();
entryValue.setKey(attributename);
List<EntryElement> entryElementList = EntryUtils.makeEntryElementList(value);
entryValue.setValue(entryElementList);
user.getAttributes().put(attributename, entryValue);
synchronized (entityManager) {
entityManager.merge(user);
}
}