if (accountManagement == null) return null;
return new AddUserCommandHandler(accountManagement, Arrays.asList(serverRuntimeContext.getServerEnitity().getDomain()));
} else if (commandNode.equals(COMMAND_CHANGE_USER_PASSWORD)) {
return new ChangeUserPasswordCommandHandler(accountManagement, null);
} else if (commandNode.equals(COMMAND_GET_ONLINE_USERS_NUM)) {
return new GetOnlineUsersCommandHandler(resourceRegistry);
}
return null;
}