private ResponseStream sendSyncRequest( HttpRequest request, RequestParams params, String contentType) throws HttpException { if (contentType != null) { request.setHeader("Content-Type", contentType); } SyncHttpHandler handler = new SyncHttpHandler(httpClient, httpContext, defaultResponseTextCharset); handler.setExpiry(currentRequestExpiry); handler.setHttpRedirectHandler(httpRedirectHandler); request.setRequestParams(params); try { return handler.sendRequest(request); } catch (com.fortune.util.HttpException e) { e.printStackTrace(); } return null; }