if (_userCache.get(user.getUsername()) != null) {
try {
_database.begin();
Connection connection = _database.getConnection();
adapter.updateUser(connection, user);
_database.commit();
addToUserCache(user);
success = true;
} catch (Exception exception) {
_log.error("Failed to update user", exception);