n = new Name();
n.setValue("A first business service");
bs.getName().add(n);
BindingTemplate bt = new BindingTemplate();
bs.setBindingTemplates(new BindingTemplates());
bt.setAccessPoint(new AccessPoint());
bt.getAccessPoint().setValue(url);
//bt.setHostingRedirector(new HostingRedirector());
//bt.getHostingRedirector().setBindingKey(str255);
bs.getBindingTemplates().getBindingTemplate().add(bt);
be.getBusinessServices().getBusinessService().add(bs);
sb.getBusinessEntity().add(be);
System.out.println("Saving the business with the first service");
BusinessDetail saveBusiness = publication.saveBusiness(sb);
PrintBusinessDetails(saveBusiness.getBusinessEntity());
//setup the next one
bs = new BusinessService();
n = new Name();
n.setValue("A a redirected business service");
bt = new BindingTemplate();
bt.setAccessPoint(new AccessPoint());
bt.getAccessPoint().setUseType(AccessPointType.BINDING_TEMPLATE.toString());
bt.getAccessPoint().setValue(saveBusiness.getBusinessEntity().get(0).getBusinessServices().getBusinessService().get(0).getBindingTemplates().getBindingTemplate().get(0).getBindingKey());
bs.getName().add(n);
bs.setBindingTemplates(new BindingTemplates());
bs.getBindingTemplates().getBindingTemplate().add(bt);