getResourceField snippet added