replace static data keyword with resource key

Make users able to set resourceKey as array root