try { final PropertiesWriter writer = PropertiesWriterRegistry .getInstance().get(format).getWriter(os); writer.write(properties); os.flush();
try { final PropertiesWriter writer = PropertiesWriterRegistry .getInstance().get(format).getWriter(os); writer.write(properties); os.flush();
final PropertiesWriter writer = PropertiesWriterRegistry.getInstance().get(format).getWriter(baos);
final PropertiesWriter writer = PropertiesWriterRegistry.getInstance().get(format).getWriter(baos);
final PropertiesWriter writer = PropertiesWriterRegistry.getInstance().get(format).getWriter(baos);