WsResource[] relationships = getRelationship();
Collection results = new ArrayList();
for (int n = 0; n < relationships.length; ++n)
{
RelationshipResource capability =
(RelationshipResource)relationships[n].getCapability(MuwsConstants.RELATIONSHIP_RESOURCE_URI);
QName[] typeValues = capability.getType().getValues();
//
// we only check the first (top-level) name in the type array,
// because this operation doesn't provide a way to specify
// more complex types or paths - we have to ignore the rest