private String convertToString(InputStream inputStreamObj) throws IOException { if (inputStreamObj != null) { ...