code: 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;
  	}
docs: /application/services/adapter