public static SPSSODescriptorType createSPSSODescriptor(boolean requestsSigned, KeyDescriptorType keyDescriptorType,
EndpointType sloEndPoint, List<AttributeType> attributes, OrganizationType org) {
List<String> protocolEnumList = new ArrayList<String>();
protocolEnumList.add(JBossSAMLURIConstants.PROTOCOL_NSURI.get());
SPSSODescriptorType sp = new SPSSODescriptorType(protocolEnumList);
sp.addSingleLogoutService(sloEndPoint);
sp.addKeyDescriptor(keyDescriptorType);
sp.setAuthnRequestsSigned(requestsSigned);
sp.setOrganization(org);
return sp;
}