Source:
<code>protected UsageAwareDatastoreConnection<ElasticSearchDataContext> createDatastoreConnection() { Client client; if (ClientType.TRANSPORT.equals(_clientType)) { final Builder settingsBuilder = ImmutableSettings.builder(); settingsBuilder.put("name", "DataCleaner"); settingsBuilder.put("cluster.name", _clusterName); if (!StringUtils.isNullOrEmpty(_username) && !StringUtils.isNullOrEmpty(_password)) { settingsBuilder.put("shield.user", _username + ":" + _password); if (_ssl) { <START> if(_keystorePath != null && !_keystorePath.isEmpty()) { <END> settingsBuilder.put("shield.ssl.keystore.path", _keystorePath); settingsBuilder.put("shield.ssl.keystore.password", _keystorePassword); } settingsBuilder.put("shield.transport.ssl", "true"); } } final Settings settings = settingsBuilder.build(); client = new TransportClient(settings); ((TransportClient) client).addTransportAddress(new InetSocketTransportAddress(_hostname, _port)); } else { final Builder settingsBuilder = ImmutableSettings.builder(); settingsBuilder.put("name", "DataCleaner"); settingsBuilder.put("shield.enabled", false); final Settings settings = settingsBuilder.build(); final Node node = nodeBuilder().clusterName(_clusterName).client(true).settings(settings).node(); client = node.client(); } final ElasticSearchDataContext dataContext; if (_tableDefs == null || _tableDefs.length == 0) { dataContext = new ElasticSearchDataContext(client, _indexName); } else { dataContext = new ElasticSearchDataContext(client, _indexName, _tableDefs); } return new UpdateableDatastoreConnectionImpl<ElasticSearchDataContext>(dataContext, this); }</code><technical_language>Small improvement Strings.isNullOrEmpty(_keystorePath). a blocker all</technical_language>

Target:
protected UsageAwareDatastoreConnection<ElasticSearchDataContext> createDatastoreConnection() { Client client; if (ClientType.TRANSPORT.equals(_clientType)) { final Builder settingsBuilder = ImmutableSettings.builder(); settingsBuilder.put("name", "DataCleaner"); settingsBuilder.put("cluster.name", _clusterName); if (!StringUtils.isNullOrEmpty(_username) && !StringUtils.isNullOrEmpty(_password)) { settingsBuilder.put("shield.user", _username + ":" + _password); if (_ssl) { if(!Strings.isNullOrEmpty(_keystorePath)) { settingsBuilder.put("shield.ssl.keystore.path", _keystorePath); settingsBuilder.put("shield.ssl.keystore.password", _keystorePassword); } settingsBuilder.put("shield.transport.ssl", "true"); } } final Settings settings = settingsBuilder.build(); client = new TransportClient(settings); ((TransportClient) client).addTransportAddress(new InetSocketTransportAddress(_hostname, _port)); } else { final Builder settingsBuilder = ImmutableSettings.builder(); settingsBuilder.put("name", "DataCleaner"); settingsBuilder.put("shield.enabled", false); final Settings settings = settingsBuilder.build(); final Node node = nodeBuilder().clusterName(_clusterName).client(true).settings(settings).node(); client = node.client(); } final ElasticSearchDataContext dataContext; if (_tableDefs == null || _tableDefs.length == 0) { dataContext = new ElasticSearchDataContext(client, _indexName); } else { dataContext = new ElasticSearchDataContext(client, _indexName, _tableDefs); } return new UpdateableDatastoreConnectionImpl<ElasticSearchDataContext>(dataContext, this); }