private String doPost(String link, StringEntity entity) throws ConnectorException
	{
		HashMap<String, String> headers = new HashMap<String, String>();
		headers.put(Constants.VCLOUD_AUTH_HEADER, authToken);
		headers.put(Utils.ACCEPT_HEADER, Constants.XML_CONTENT_TYPE);
		
		HttpResponse resp = RestClient.doPost(link, entity, headers);
		StatusLine status = resp.getStatusLine();
		HttpClient httpClient = RestClient.getHttpClient();
		String responseString = RestClient.getResponseString(httpClient, resp);
		String errorMessage = RestClient.getErrorMessage(responseString);
		
		if( status.getStatusCode() == 400) 
		{
			throw new ConnectorException("Bad Request. " + errorMessage);
		} 
		else if (status.getStatusCode() == 401) 
		{
			throw new ConnectorException("Unauthorized. " + errorMessage);
		}
		else if (status.getStatusCode() == 403)
		{
			throw new ConnectorException("Forbidden. " + errorMessage);
		}
		else if (status.getStatusCode() == 404)
		{
			throw new ConnectorException("Not Found. " + errorMessage);
		}
		
		return responseString;
	}