static void copyStreamAndCloseInput(InputStream in, OutputStream out) ctex { try { copyStream(in, out); } finally { in.close(); } }