code: @Override
  	public Response getApplicationBindings( String applicationName ) {
  
  		Response response;
  		ManagedApplication ma = this.manager.applicationMngr().findManagedApplicationByName( applicationName );
  		if( ma == null ) {
  			response = handleError(
  					Status.NOT_FOUND,
  					new RestError( REST_INEXISTING, application( applicationName )),
  					lang( this.manager )).build();
  
  		} else {
  			ApplicationBindings bindings = new ApplicationBindings();
  
  			// Find all the external prefixes to resolve
  			for( Component c : ComponentHelpers.findAllComponents( ma.getApplication())) {
  				for( ImportedVariable var : ComponentHelpers.findAllImportedVariables( c ).values()) {
  					if( ! var.isExternal())
  						continue;
  
  					String prefix = VariableHelpers.parseVariableName( var.getName()).getKey();
  					bindings.prefixToItems.put( prefix, new ArrayList<ApplicationBindingItem> ());
  				}
  			}
  
  			// Find all the applications that match a given prefix
  			for( ManagedApplication managedApp : this.manager.applicationMngr().getManagedApplications()) {
  
  				// Any potential bindings with this application?
  				// There should be AT MOST 1 matching template for a given prefix.
  				// One template means there can be several applications.
  				String prefix = managedApp.getApplication().getTemplate().getExternalExportsPrefix();
  				if( prefix == null || ! bindings.prefixToItems.containsKey( prefix ))
  					continue;
  
  				// There is a potential match. Is there an effective bound?
  				Set<String> boundApps = ma.getApplication().getApplicationBindings().get( prefix );
  				boolean bound = boundApps != null && boundApps.contains( managedApp.getName());
  				ApplicationBindingItem item = new ApplicationBindingItem( managedApp.getName(), bound );
  				bindings.prefixToItems.get( prefix ).add( item );
  			}
  
  			response = Response.ok().entity( bindings ).build();
  		}
  
  		return response;
  	}
docs: /*
  (non-Javadoc)
  @see net.roboconf.dm.rest.services.internal.resources.IApplicationResource
  #getApplicationBindings(java.lang.String)