/* check the issuer is present and has the expected format */
Issuer issuer = query.getIssuer();
if (issuer == null) {
throw new MissingIssuerException();
}
String issuerFormat = issuer.getFormat();
if (issuerFormat != null && !issuerFormat.equals(NameID.ENTITY))