Must be *ResourceNode*, not *resourceNode*. Also the namespace of this class is not imported.