// name and parent
SyncopeClientException invalidRoles = new SyncopeClientException(SyncopeClientExceptionType.InvalidRoles);
if (roleTO.getName() == null) {
LOG.error("No name specified for this role");
invalidRoles.addElement("No name specified for this role");
} else {
role.setName(roleTO.getName());
}
Long parentRoleId = null;
if (roleTO.getParent() != 0) {