In relation to the Carousel Macro and in order to support the ability to easily add metadata to XWiki attachments or to any other resource such as remote images, or any URI, I created the Resource Metadata Application. It provides a ResourceMetadataClass and its Java representation. It was named
ResourceMetadata rather than
AttachmentMetadata because the class could also be used to describe remote resources in some cases (e.g. for a carousel consisting of remote resources). Any feedback welcome, including other name suggestions, or hints at existing code that would make this extension possibly unnecessary.