httpClient.getParams().setAuthenticationPreemptive(true);
int responseStatus=httpClient.executeMethod(post);
return resultForResponseStatus(responseStatus);
} catch(Exception e){
return AbstractResult.failure(new RepositoryException(e));
}finally{
post.releaseConnection();
}
}