protected void parseCommonElements( StartElement startElement, XMLEventReader xmlEventReader, RequestAbstractType request) throws ParsingException { if (startElement == null) throw new IllegalArgumentException(ErrorCodes.NULL_START_ELEMENT); String elementName = StaxParserUtil.getStartElementName(startElement); if (JBossSAMLConstants.ISSUER.get().equals(elementName)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); NameIDType issuer = new NameIDType(); issuer.setValue(StaxParserUtil.getElementText(xmlEventReader)); request.setIssuer(issuer); } else if (JBossSAMLConstants.SIGNATURE.get().equals(elementName)) { request.setSignature(StaxParserUtil.getDOMElement(xmlEventReader)); } }