OutputStream out = null;
try {
Properties sortedProperties = new SortedProperties(properties);
File f = new File(filename);
out = new FileOutputStream(f);
sortedProperties.store(out, header);
} catch (Exception e) {
_log.error(e,e);
} finally {
try {
out.close();