public void abort() { if (out != null) { try { if (out.abort()) { LOGGER.info("OutputStream was successfully aborted."); } else { LOGGER.warning( "OutputStream could not be aborted in time. An error has occurred and could not be sent to the user."); } } catch (IOException e) { LOGGER.warning("Error aborting OutputStream"); e.printStackTrace(); } } }