bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/packaging/ApplicationManagement.java
private Adapter getAdapter(String name) {
		List<Adapter> services = getAdapterServices();

		if (services != null) {
			for (Adapter service : services) {
				if (service.getName().equals(name)) {
					return service;
				}
			}
		}

		Adapter result = new Adapter();
		result.setName(name);
		services.add(result);

		QName qName = new QName(APPLICATION_MANAGEMENT_NAMESPACE, "adapter");
		JAXBElement<Adapter> j = new JAXBElement<Adapter>(qName, Adapter.class, result);
		application.getServices().getBaseService().add(j);

		return result;
	}
private Adapter getAdapter(String name) {
		List<Adapter> services = getAdapterServices();

		if (services != null) {
			for (Adapter service : services) {
				if (service.getName().equals(name)) {
					return service;
				}
			}
		}

		Adapter result = new Adapter();
		result.setName(name);
		services.add(result);

		QName qName = new QName(APPLICATION_MANAGEMENT_NAMESPACE, "adapter");
		JAXBElement<Adapter> j = new JAXBElement<Adapter>(qName, Adapter.class, result);
		application.getServices().getBaseService().add(j);

		return result;
	}
/application/services/adapter