[java] Adding header for HttpURLConnection