private BCSHttpResponse createBCSHttpResponse(HttpResponse paramHttpResponse) 
			throws IllegalStateException, IOException {
		BCSHttpResponse localBCSHttpResponse = new BCSHttpResponse();
		if (null != paramHttpResponse.getEntity()) {
			localBCSHttpResponse.setContent(paramHttpResponse.getEntity().getContent());
		}
		localBCSHttpResponse.setStatusCode(paramHttpResponse.getStatusLine().getStatusCode());
		localBCSHttpResponse.setStatusText(paramHttpResponse.getStatusLine().getReasonPhrase());

		for (Header localHeader : paramHttpResponse.getAllHeaders()) {
			localBCSHttpResponse.addHeader(localHeader.getName(), localHeader.getValue());
		}
		return localBCSHttpResponse;
	}