using ResourceController to get resource uri head