<BUG>if (writer != null){</BUG><CONTEXT>writer.println("# cluster manager properties (only configure for cluster manager) #");writer.println("nifi.cluster.is.manager=false");} catch (NullPointerException e) {throw new ConfigurationChangeException("Failed to parse the config YAML while creating the nifi.properties", e);} finally {<extra_id_0>writer.flush();writer.close();}</CONTEXT>
if (writer != null) {