NegotiableCapabilitySet negotiated =
new NegotiableCapabilitySet(isPreference & other.isPreference());
// Get only the common categories
Vector commonCategories = new Vector(getCategories());
commonCategories.retainAll(other.getCategories());
String capName, otherCapName;
NegotiableCapability thisCap, otherCap, negCap;
List thisCapabilities, otherCapabilities;