* the transferToken argument does not match an existing token known to
* the system, no action is taken and success is reported. Keys in the
* keyBag argument that do not have a corresponding token are ignored.
*/
public String DiscardToken(String tokenxml) {
DiscardTransferToken r = new DiscardTransferToken();
r.setAuthInfo(GetToken());
r.setTransferToken(JAXB.unmarshal(new StringReader(tokenxml), TransferToken.class));
try {
try {
custody.discardTransferToken(r);
} catch (Exception ex) {
if (isExceptionExpiration(ex)) {
token = null;
r.setAuthInfo(GetToken());
custody.discardTransferToken(r);
} else {
throw ex;
}