Timestamp notAfter = new Timestamp(captoken.xgetNotafter().getDateValue().getTime());
registryImpl.addCapability(findUserDN(), captoken.getResourceID(), captoken.getActor(),
captoken.getActorType(), captoken.getAction(), captoken.getAssertions(), notBefore,
notAfter);
AddCapabilityTokenResponseDocument responseDocument = AddCapabilityTokenResponseDocument.Factory
.newInstance();
responseDocument.addNewAddCapabilityTokenResponse();
log.info("Response: " + responseDocument.xmlText());
return responseDocument;
}