* @return
* @throws XRegistryClientException
*/
public CapabilityToken[] findCapability(String resourceID, String actor, boolean actorType, String action) throws XRegistryClientException {
GetCapabilityDocument document = GetCapabilityDocument.Factory.newInstance();
GetCapability getCapability = document.addNewGetCapability();
if(resourceID != null || actor != null){
getCapability.setUser(actor);
getCapability.setResourceID(resourceID);
getCapability.setActorType(actorType);
getCapability.setAction(action);