Fix incorrect method argument after upgrading to rest-core 2.0