if (sasMechType == null) {
result.setIdentityToken(new CSSSASITTAbsent());
} else if (sasMechType.isSetITTAbsent()) {
result.setIdentityToken(new CSSSASITTAbsent());
} else if (sasMechType.isSetITTAnonymous()) {
result.setIdentityToken(new CSSSASITTAnonymous());
} else if (sasMechType.isSetITTPrincipalNameStatic()) {
CSSITTPrincipalNameStaticType principal = sasMechType.getITTPrincipalNameStatic();
result.setIdentityToken(new CSSSASITTPrincipalNameStatic(principal.getOid(), principal.getName()));
} else if (sasMechType.isSetITTPrincipalNameDynamic()) {
CSSITTPrincipalNameDynamicType principal = sasMechType.getITTPrincipalNameDynamic();