private static void copyHeader(URL srcURL, PrintWriter out) throws IOException {
private static void copyHeader(InputStream in, PrintWriter out) throws IOException {
    private static void copyHeader(URL srcURL, PrintWriter out) throws IOException {        StringBuffer buf = new StringBuffer();        BufferedReader r = new BufferedReader(new InputStreamReader(srcURL.openStream()));        for (String line = r.readLine(); line != null; line = r.readLine()) {            int index = line.indexOf("<ivy-module");            if (index == -1) {                buf.append(line).append(LINE_SEPARATOR);            } else {                buf.append(line.substring(0, index));                out.print(buf.toString());                break;            }        }        r.close();    }