bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/packaging/AbstractPackagingMojo.java
protected Properties loadPropertiesFile(File propertiesFile) throws ConfigurationException, IOException {
		Properties properties = new Properties() { // sorted properties
			private static final long serialVersionUID = 7793482336210629858L;
			
			@Override
			public synchronized Enumeration<Object> keys() {
				return Collections.enumeration(new TreeSet<Object>(super.keySet()));
			}
		};
		
		FileInputStream fileInputStream = new FileInputStream(propertiesFile);
		properties.load(fileInputStream);

		return properties;
	}
protected Properties loadPropertiesFile(File propertiesFile) throws ConfigurationException, IOException {
		Properties properties = new Properties() { // sorted properties
			private static final long serialVersionUID = 7793482336210629858L;
			
			@Override
			public synchronized Enumeration<Object> keys() {
				return Collections.enumeration(new TreeSet<Object>(super.keySet()));
			}
		};
		
		FileInputStream fileInputStream = new FileInputStream(propertiesFile);
		properties.load(fileInputStream);

		return properties;
	}
<p>
This loads a properties file into a java.util.Properties object with
sorted keys.<br/><br/>

<b>NB</b>: always use keys() method to browse the properties
</p>

@param propertiesFile
@return
@throws ConfigurationException
@throws IOException