public boolean evaluate( ExprNode node, Dn dn, Entry entry ) throws LdapException
{
Pattern regex = null;
SubstringNode snode = ( SubstringNode ) node;
AttributeType attributeType = snode.getAttributeType();
MatchingRule matchingRule = attributeType.getSubstring();
if ( matchingRule == null )
{
matchingRule = attributeType.getEquality();
}
Normalizer normalizer = matchingRule.getNormalizer();
// get the attribute
Attribute attr = entry.get( snode.getAttribute() );
// if the attribute does not exist just return false