protected final <StsResponseType>StsResponseType parseStsResponse(Node soapResponseNode,Class<StsResponseType> responseType,boolean skipValidation) throws ParserException {
  JAXBElement<StsResponseType> jaxbParserResult;
  try {
    Unmarshaller unmarshaller=jaxbContext.createUnmarshaller();
    if (!skipValidation) {
      unmarshaller.setSchema(wsTrustSchema);
    }
    jaxbParserResult=unmarshaller.unmarshal(soapResponseNode,responseType);
  }
 catch (  JAXBException e) {
    String message="Error parsing the response document";
    log.debug(message);
    throw new ParserException(message,e);
  }
  log.debug("Parsing the responce object to JAXB classes completed");
  return jaxbParserResult.getValue();
}

protected final < StsResponseType > StsResponseType parseStsResponse ( Node soapResponseNode , Class < StsResponseType > responseType , boolean skipValidation ) throws ParserException { JAXBElement < StsResponseType > jaxbParserResult ; try { Unmarshaller unmarshaller = jaxbContext . createUnmarshaller ( ) ; if ( ! skipValidation ) { unmarshaller . setSchema ( wsTrustSchema ) ; } jaxbParserResult = unmarshaller . unmarshal ( soapResponseNode , responseType ) ; } catch ( JAXBException e ) { String message = "Error parsing the response document" ; log . debug ( message ) ; throw new ParserException ( message , e ) ; } log . debug ( "Parsing the responce object to JAXB classes completed" ) ; return jaxbParserResult . getValue ( ) ; }
parse and , optionally , validate ws - trust response of type " stsresponsetype " .
