Remove usage of deprecated function getPattern()

Found another one.
Did also some search now and there is no set/get-Pattern anymore.