Use the new OPTIMA.CORE package for defining custom patterns.