helps to define the resource mapping.