private boolean match(ConditionsType conditions, String subscriberAor, String domain)
{
boolean matchIdentity = conditions.getIdentityArray().length == 0;
for (int i = 0; i < conditions.getIdentityArray().length; i++)
{
IdentityType identity = conditions.getIdentityArray(i);
for (int j = 0; j < identity.getOneArray().length; j++)
if (identity.getOneArray(j).getId().equals(subscriberAor))
matchIdentity = true;
for (int j = 0; j < identity.getManyArray().length; j++)
{
ManyType manyType = identity.getManyArray(j);
if (manyType.getDomain().equals(domain))
{
boolean match = true;
for (int k = 0; k < manyType.getExceptArray().length; k++)
if (manyType.getExceptArray(k).getId().equals(subscriberAor))