add deprecated annotation to getPattern, see #93