BZ-1074672: Fixing legacy API to properly handle resource configuration.
(cherry picked from commit 645d0e5cb86225a898391960350588d1817b1de2)