question: private Document parse ( final String data ) { if ( docBuilder == null || data == null ) { return null ; } Document document = null ; try { String buf = BEGINPART + data + ENDPART ; InputSource inputSource = new InputSource ( new StringReader ( buf ) ) ; document = docBuilder . parse ( inputSource ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return document ; }
target:  Converts the LoggingEvent data in XML string format into an actual XML Document class instance.