protected static CSSSASMechConfig extractSASMech(CSSSasMechType sasMechType, Bundle bundle) throws DeploymentException {
CSSSASMechConfig result = new CSSSASMechConfig();
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()));