public static void shutdown(final HttpClient httpclient) {
if (httpclient != null) {
final HttpConnectionManager connectionManager = httpclient.getHttpConnectionManager();
if (connectionManager instanceof MultiThreadedHttpConnectionManager) {
final MultiThreadedHttpConnectionManager multiThreadedHttpConnectionManager = (MultiThreadedHttpConnectionManager)connectionManager;
multiThreadedHttpConnectionManager.shutdown();
}
}
}
}