Elasticsearch + nginx reverse proxy (basic auth) using Java 7