try {
final String siteURL = context.getBean(SettingManager.class).getSiteURL(context);
processedMetadata = XslProcessing.get().process(id, process,
true, context.getAppPath(), report, true, siteURL, request);
if (processedMetadata == null) {
throw new BadParameterEx("Processing failed", "Not found:"
+ report.getNotFoundMetadataCount() + ", Not owner:" + report.getNotEditableMetadataCount()
+ ", No process found:" + report.getNoProcessFoundCount() + ".");
}
} catch (Exception e) {
throw e;