final List<StatusBean> statuses = new ArrayList<StatusBean>();
final StatusBean syncope = new StatusBean();
syncope.setAccountLink(userTO.getUsername());
syncope.setResourceName("Syncope");
Status syncopeStatus = Status.UNDEFINED;
if (userTO.getStatus() != null) {
try {
syncopeStatus = Status.valueOf(userTO.getStatus().toUpperCase());
} catch (IllegalArgumentException e) {
LOG.warn("Unexpected status found: {}", userTO.getStatus());