code: public boolean matches( String resourceName , String action )
  	{
  		// Match rsource name first
  		if (!StringTools.matches(resourceName, resourcePattern))
  			return false;
  		
  		// Check action
  		return actions.contains(action);
  	}
docs: Check if this privilege matches the given resource/action couple
  @param resourceName the resource name
  @param action the action name
  @return true if the privilege matches