protected static void checkContentType(HttpMethodBase response, String mimeType)
protected static void checkContentType(HttpMethod response, String mimeType)
    protected static void checkContentType(HttpMethodBase response,                                             String mimeType)        throws ImageServiceException     {        Header header = response.getResponseHeader("Content-Type");        if (header == null)            throw new ImageServiceException(                    "Unspecified content type (OMEIS internal error).");        String value = header.getValue();        if (!mimeType.equals(value)) {            throw new ImageServiceException(                    "Wrong mime type: ["+value+ "] (OMEIS internal error).");        }    }