A null pattern matches anything.
*/
boolean match(Hashtable properties, Pattern propertyPattern, Pattern valuePattern)
{
final Iterator keys = new EnumerationIterator(properties.keys());
boolean matches = false;
while (keys.hasNext())
{
final String key = (String) keys.next();
if (propertyPattern == null || propertyPattern.matcher(key).matches())
{
if (valuePattern == null)
{