"For example if you are creating a new sort of resource you can look at the /mod/resource code to see how it is done there." . . . .