response = httpClient.execute(httpHost, post, CouchDBUtils.getContext(httpHost));
}
catch (Exception e)
{
log.error("Error while executing batch, caused by {}. ", e);
throw new KunderaException("Error while executing batch. caused by :" + e);
}
}
}
catch (OperationNotSupportedException e)
{
throw new KunderaException(e.getMessage());
}
finally
{
CouchDBUtils.closeContent(response);
}