It would be nice if there were a way to include a way to declare the custom properties and attributes that the custom resource allows, as well.