@Override
public void removeUserDomainFromDomain(Long domainId, Long userId) {
if (domainId != null && domainId > 0 && userId != null && userId > 0) {
User user = userService.get(userId);
if (user != null && user.getUserDomains() != null) {
UserDomain userDomain = userDomainDao.getUserDomain(user, domainId);
if (userDomain != null) {
if (user.getUserDomains().contains(userDomain)) {
user.getUserDomains().remove(userDomain);
}