throws UnsupportedOperationException {
actor.setPassword(generateHash(actor.getUsername(),
actor.getPassword(), actor.getPassPhrase()));
credentialDao.persistEntity(actor);
if (appVersion != null && appVersion.length() > 0) {
final AppInfo appInfo = credentialDao.getAppInfo(appVersion);
appInfo.setDefaultActor(actor);
credentialDao.persistEntity(actor);
}
return actor;
}