final StatusBean syncope = new StatusBean(subject, "syncope");
if (subject instanceof UserTO) {
syncope.setAccountLink(((UserTO) subject).getUsername());
Status syncopeStatus = Status.UNDEFINED;
if (((UserTO) subject).getStatus() != null) {
try {
syncopeStatus = Status.valueOf(((UserTO) subject).getStatus().toUpperCase());
} catch (IllegalArgumentException e) {
LOG.warn("Unexpected status found: {}", ((UserTO) subject).getStatus(), e);