{
if (epr == null)
throw new NullPointerException(_MESSAGES.get("NullResource"));
EndpointReference sgEPR = getServiceGroupEPR();
WsResourceClient resource = new WsResourceClient(epr, sgEPR);
QName[] content = getContentElements();
try
{
//
// all we have to do is try and read all the properties
// in the list - if any of them is undefined, this will
// fault, and we don't have a match. there is no fault if
// the property is defined but has zero instances
//
// note that we only do the test if there are some property
// names - an empty array means "any resource is allowed"
//
if (content.length > 0)
resource.getMultipleResourceProperties(content);
}
//
// in this case, there is no error - this just means that
// the resource does not match the membership rule