private String getBlankResponseXml ( ) { Map < String , Object > data = new HashMap < String , Object > ( ) ; data . put ( "requestID" , UUID . randomUUID ( ) . toString ( ) ) ; String ret = null ; try { ret = TemplateUtils . get ( BLANK_RESPONSE_TEMPLATE , data ) ; } catch ( AwsMockException e ) { log . error ( "fatal exception caught: {}" , e . getMessage ( ) ) ; e . printStackTrace ( ) ; } return ret ; }
Generate blank response body in xml and write it with writer .