throw ex;
}
}
}
if (method.equalsIgnoreCase("getTransferToken")) {
GetTransferToken r = ((GetTransferToken) request);
TransferToken tt = new TransferToken();
Holder<String> node = new Holder<String>();
Holder<XMLGregorianCalendar> xcal = new Holder<XMLGregorianCalendar>();
Holder<byte[]> ttoken = new Holder<byte[]>();
try {
custody.getTransferToken(GetToken(), r.getKeyBag(), node, xcal, ttoken);
tt.setNodeID(node.value);
tt.setOpaqueToken(ttoken.value);
tt.setExpirationTime(xcal.value);
response = tt;
} catch (Exception ex) {
if (isExceptionExpiration(ex)) {
token = null;
custody.getTransferToken(GetToken(), r.getKeyBag(), node, xcal, ttoken);
tt.setNodeID(node.value);
tt.setOpaqueToken(ttoken.value);
tt.setExpirationTime(xcal.value);
response = tt;