// Set an UUID as the ID of an assertion
assertion.setID(UUIDGenerator.getUUID());
//Set the issuer
IssuerBuilder issuerBuilder = new IssuerBuilder();
Issuer issuer = issuerBuilder.buildObject();
issuer.setValue(config.issuerName);
assertion.setIssuer(issuer);
// Set the issued time.
assertion.setIssueInstant(new DateTime());