HttpMethodBase method = null;
HttpMethod method = null;
    public void exchange(Request out, Reply in)         throws ImageServiceException, IOException    {        //Sanity checks.        if (out == null) throw new NullPointerException("No request.");        if (in == null) throw new NullPointerException("No reply.");                //Build HTTP request, send it, and wait for response.        //Then read the response into the Reply object.        HttpClient comLink = getCommunicationLink();        HttpMethodBase method = null;        try {            method = out.marshal();            method.setPath(getRequestPath());            comLink.executeMethod(method);            in.unmarshal(method, this);        } finally {            //Required by Http Client library.            if (method != null) method.releaseConnection();        }    }