if (sasMech.isSetServiceConfigurationList()) {
sasMechConfig.setRequired(sasMech.getServiceConfigurationList().getRequired());
TSSGeneralNameType[] generalNames = sasMech.getServiceConfigurationList().getGeneralNameArray();
for (int i = 0; i < generalNames.length; i++) {
sasMechConfig.addServiceConfigurationConfig(new TSSGeneralNameConfig(generalNames[i].getPrivilegeAuthority()));
}
TSSGssExportedNameType[] exportedNames = sasMech.getServiceConfigurationList().getGssExportedNameArray();
for (int i = 0; i < exportedNames.length; i++) {
sasMechConfig.addServiceConfigurationConfig(new TSSGSSExportedNameConfig(exportedNames[i].getPrivilegeAuthority(), exportedNames[i].getOID()));