try {
byte[] buf = new byte[ inputStream.available() ];
IOUtils.readFully(inputStream,buf);
String contents = new String(buf);
context.writeString(contents);
}
catch( IOException ex ) {
throw ex;
}
catch( Exception e ) {
log.error(Messages.getMessage("exception00"), e);
}