protected static void checkStatusCode(HttpMethodBase response)
protected static void checkStatusCode(HttpMethod response)
    protected static void checkStatusCode(HttpMethodBase response)        throws ImageServiceException    {        int status = response.getStatusCode();        if (status != HttpStatus.SC_OK)            throw new ImageServiceException("OMEIS couldn't handle request: "+                        HttpStatus.getStatusText(status)+".");    }