bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/packaging/ApplicationManagement.java
private <T extends ServiceType> Properties getNVPairs(T service) {
		SortedProperties result = new SortedProperties();

		String serviceKey = getElementKey(service) + "[" + service.getName() + "]";
		
		List<NVPairs> nvPairsList = new ArrayList<NVPairs>();
		nvPairsList = service.getNVPairs();
		
		String variablesKey;

		for (NVPairs nvPairs : nvPairsList) {
			variablesKey = serviceKey + "/variables[" + nvPairs.getName() + "]"; 
			String key;
			for (JAXBElement<? extends NVPairType> nvPair : nvPairs.getNVPair()) {
				key = variablesKey + "/variable[" + nvPair.getValue().getName() + "]";
				result.setProperty(key, nvPair.getValue().getValue());
			}			
		}

		return result;
	}
private <T extends ServiceType> Properties getNVPairs(T service) {
		SortedProperties result = new SortedProperties();

		String serviceKey = getElementKey(service) + "[" + service.getName() + "]";
		
		List<NVPairs> nvPairsList = new ArrayList<NVPairs>();
		nvPairsList = service.getNVPairs();
		
		String variablesKey;

		for (NVPairs nvPairs : nvPairsList) {
			variablesKey = serviceKey + "/variables[" + nvPairs.getName() + "]"; 
			String key;
			for (JAXBElement<? extends NVPairType> nvPair : nvPairs.getNVPair()) {
				key = variablesKey + "/variable[" + nvPair.getValue().getName() + "]";
				result.setProperty(key, nvPair.getValue().getValue());
			}			
		}

		return result;
	}
private < T extends ServiceType > Properties getNVPairs ( T service ) { SortedProperties result = new SortedProperties ( ) ; String serviceKey = getElementKey ( service ) + "[" + service . getName ( ) + "]" ; List < NVPairs > nvPairsList = new ArrayList < NVPairs > ( ) ; nvPairsList = service . getNVPairs ( ) ; String variablesKey ; for ( NVPairs nvPairs : nvPairsList ) { variablesKey = serviceKey + "/variables[" + nvPairs . getName ( ) + "]" ; String key ; for ( JAXBElement < ? extends NVPairType > nvPair : nvPairs . getNVPair ( ) ) { key = variablesKey + "/variable[" + nvPair . getValue ( ) . getName ( ) + "]" ; result . setProperty ( key , nvPair . getValue ( ) . getValue ( ) ) ; } } return result ; }
<p>
This method focuses on Global Variables found in this path :
"/application/services/bw/NVPairs"
"/application/services/adapter/NVPairs"
</p>
<p > This method focuses on Global Variables found in this path : / application / services / bw / NVPairs / application / services / adapter / NVPairs < / p >