if (elMd == null)
throw new MetadataNotFoundEx("Metadata not found - deleted?");
//--- manage the download hook
IResourceDownloadHandler downloadHook = (IResourceDownloadHandler) context.getApplicationContext().getBean("resourceDownloadHandler");
Element response = downloadHook.onDownloadMultiple(context, params, Integer.parseInt(id), files);
// Return null to do the default processing. TODO: Check to move the code to the default hook.
if (response != null) {
return response;