Separate markup for resource types. Have the resource object to be used in loadResourceByNameAndType.