Maybe it'll be also worth to add handling exceptions:
```java
http.setEntity(new StringEntity(EMPTY_JSON));
```