assertion.setVersion(SAMLVersion.VERSION_20);
assertion.setIssueInstant(new DateTime());
// build an issuer object
IssuerBuilder issuerBuilder = (IssuerBuilder) builderFactory.getBuilder(Issuer.DEFAULT_ELEMENT_NAME);
Issuer issuer = issuerBuilder.buildObject();
String defaultEntityId = String.format("%s://%s:%s/%s/services/ProvisioningService",
request.getScheme(),
request.getServerName(),
request.getServerPort(),
PAPConfiguration.DEFAULT_WEBAPP_CONTEXT);
PAPConfiguration conf = PAPConfiguration.instance();
String issuerValue = conf.getString(PAPConfiguration.STANDALONE_SERVICE_STANZA+".entity_id", defaultEntityId);
issuer.setValue(issuerValue);
assertion.setIssuer(issuer);
/* build policy statements objects */