Revert "Replace deprecated code in process() method"

This reverts commit 22ed2a4a4357747d7a7fa59d22a15765bb225183.