Switch to class. Inherit from versionedResource class.