Holder<XMLGregorianCalendar> expiresOUT = new Holder<XMLGregorianCalendar>();
Holder<byte[]> tokenOUT = new Holder<byte[]>();
custodyTransferPortTypeJoe.getTransferToken(authInfoJoe, kb, nodeidOUT, expiresOUT, tokenOUT);
//sam accepts
TransferEntities te = new TransferEntities();
te.setAuthInfo(authInfoSam);
te.setKeyBag(kb);
TransferToken tt = new TransferToken();
tt.setExpirationTime(expiresOUT.value);
tt.setNodeID(nodeidOUT.value);
tt.setOpaqueToken(tokenOUT.value);
te.setTransferToken(tt);
custodyTransferPortTypeSam.transferEntities(te);
//confirm the transfer
GetOperationalInfo go = new GetOperationalInfo();