Source:
<code>private void createStreamClient() throws IOException { if (streamClient == null) { RestStreamClient.Builder builder = RestStreamClient.builder(host, port); builder.ssl(sslEnabled); builder.verifySSLCert(verifySSLCert); builder.writerPoolSize(writerPoolSize); builder.version(version); InputStream inStream = null; try { authClient = (AuthenticationClient) Class.forName(authClientClassName).newInstance(); authClient.setConnectionInfo(host, port, sslEnabled); if (authClient.isAuthEnabled()) { Properties properties = new Properties(); properties.setProperty(BasicAuthenticationClient.VERIFY_SSL_CERT_PROP_NAME, String.valueOf(verifySSLCert)); if ((authClientPropertiesPath == null) || (authClientPropertiesPath.isEmpty())) { LOG.error("Authentication client is enabled, but the path for properties file is either empty or null"); <START> } <END> inStream = new FileInputStream(authClientPropertiesPath); properties.load(inStream); authClient.configure(properties); } builder.authClient(authClient); } catch (IOException e) { LOG.error("Cannot load properties", e); } catch (Exception e) { LOG.error("Can not resolve class {}: {}", new Object[]{authClientClassName, e.getMessage(), e}); } finally { try { if (inStream != null) { inStream.close(); } } catch (IOException e) { LOG.warn("Error during closing input stream. {}", e.getMessage(), e); } } streamClient = builder.build(); } try { if (writer == null) { writer = streamClient.createWriter(streamName); } } catch (Throwable t) { closeWriterQuietly(); throw new IOException("Can not create stream writer by name: " + streamName, t); } }</code><technical_language>wrap next lines in else, executed in case authClientPropertiesPath is valid</technical_language>

Target:
private void createStreamClient() throws IOException { if (streamClient == null) { RestStreamClient.Builder builder = RestStreamClient.builder(host, port); builder.ssl(sslEnabled); builder.verifySSLCert(verifySSLCert); builder.writerPoolSize(writerPoolSize); builder.version(version); try { authClient = (AuthenticationClient) Class.forName(authClientClassName).newInstance(); authClient.setConnectionInfo(host, port, sslEnabled); if (authClient.isAuthEnabled()) { Properties properties = new Properties(); properties.setProperty(BasicAuthenticationClient.VERIFY_SSL_CERT_PROP_NAME, String.valueOf(verifySSLCert)); if ((authClientPropertiesPath == null) || (authClientPropertiesPath.isEmpty())) { throw new Exception("Authentication client is enabled, but the path for properties " + "file is either empty or null"); } InputStream inStream = new FileInputStream(authClientPropertiesPath); try { properties.load(inStream); } finally { Closeables.closeQuietly(inStream); } authClient.configure(properties); } builder.authClient(authClient); } catch (IOException e) { LOG.error("Cannot load properties", e); throw Throwables.propagate(e); } catch (ClassNotFoundException e) { LOG.error("Can not resolve class {}: {}", new Object[]{authClientClassName, e.getMessage(), e}); throw Throwables.propagate(e); } catch (Exception e) { LOG.error(e.getMessage(), e); throw Throwables.propagate(e); } streamClient = builder.build(); } try { if (writer == null) { writer = streamClient.createWriter(streamName); } } catch (Throwable t) { closeWriterQuietly(); throw new IOException("Can not create stream writer by name: " + streamName, t); } }