App2HostsResponseDocument responseDocument = proxy.app2Hosts(document);
return responseDocument.getApp2HostsResponse().getHostArray();
}
public void addCapability(String resource, String actor, boolean isUser, String action) throws XregistryException {
AddCapabilityDocument document = AddCapabilityDocument.Factory.newInstance();
AddCapability capability = document.addNewAddCapability();
capability.setResourceID(resource);
capability.setActor(actor);
capability.setIsActorAUser(isUser);
capability.setAction(action);
proxy.addCapability(document);
}