public String getBackendAddress(String backend) {
   for (BackendsXml.Backend bb : backends) {
     if (bb.matches(backend)) {
       BackendService bs = BackendServiceFactory.getBackendService();
       return bs.getBackendAddress(backend);
     }
   }
   return null;
 }
 public Map<String, Object> getAttributes() {
   if (isProduction() == false
       && attributes.containsKey(BackendService.DEVAPPSERVER_PORTMAPPING_KEY) == false) {
     Map<String, String> portMap = new HashMap<String, String>();
     for (BackendsXml.Backend bb : backends) {
       portMap.put(bb.getName(), getDefaultVersionHostname());
     }
     attributes.put(BackendService.DEVAPPSERVER_PORTMAPPING_KEY, portMap);
   }
   return attributes;
 }