for (AttributeTO attributeTO : userTO.getAttributes()) {
if ("surname".equals(attributeTO.getSchema())) {
surname = attributeTO;
}
}
userTO.removeAttribute(surname);
// 2. create user without surname (mandatory when type == 'F')
ex = null;
try {
restTemplate.postForObject(BASE_URL + "user/create", userTO, UserTO.class);