BusinessDetail saveBusiness1 = publicationSam.saveBusiness(sb);
//ok Joe now needs to subscribe for Sam's business
Holder<List<Subscription>> list = new Holder<List<Subscription>>();
list.value = new ArrayList<Subscription>();
Subscription s = new Subscription();
s.setBindingKey(saveBusiness.getBusinessEntity().get(0).getBusinessServices().getBusinessService().get(0).getBindingTemplates().getBindingTemplate().get(0).getBindingKey());
s.setSubscriptionFilter(new SubscriptionFilter());
s.getSubscriptionFilter().setGetBusinessDetail(new GetBusinessDetail());
s.getSubscriptionFilter().getGetBusinessDetail().getBusinessKey().add(saveBusiness1.getBusinessEntity().get(0).getBusinessKey());
DatatypeFactory df = DatatypeFactory.newInstance();
GregorianCalendar gcal = new GregorianCalendar();
gcal.setTimeInMillis(System.currentTimeMillis());
gcal.add(Calendar.HOUR, 1);
s.setExpiresAfter(df.newXMLGregorianCalendar(gcal));
s.setNotificationInterval(df.newDuration(5000));
list.value.add(s);
logger.info("subscribing joe's to updates for sam's business");
subscriptionJoe.saveSubscription(authInfoJoe, list);
//ok have sam change his business around.