LOG.fine("Parsing RequestSecurityToken");
keyRequirements = new KeyRequirements();
tokenRequirements = new TokenRequirements();
for (Object requestObject : request.getAny()) {
if (requestObject instanceof JAXBElement<?>) {
<BUG>JAXBElement<?> jaxbElement = (JAXBElement<?>) requestObject;
boolean found = parseTokenRequirements(jaxbElement, tokenRequirements, wsContext);
</BUG>
if (!found) {
found = parseKeyRequirements(jaxbElement, keyRequirements, wsContext, stsProperties);

LOG.fine("Parsing RequestSecurityToken");
keyRequirements = new KeyRequirements();
tokenRequirements = new TokenRequirements();
for (Object requestObject : request.getAny()) {
if (requestObject instanceof JAXBElement<?>) {
JAXBElement<?> jaxbElement = (JAXBElement<?>) requestObject;
boolean found =
parseTokenRequirements(jaxbElement, tokenRequirements, wsContext, claimsParsers);
if (!found) {
found = parseKeyRequirements(jaxbElement, keyRequirements, wsContext, stsProperties);
