return null;
} else {
properties.put(PROPERTY_ARCHIVE_FORMAT, archiveFormat);
}
TransformationResult tr = new TransformationResult();
// try {
// tr.setInputStream(registeredResource.getInputStream());
// } catch (IOException e) {
// log.error(String.format("Unable to transform RegisteredResource %s with type %s and scheme %s",
// registeredResource.getURL(), registeredResource.getType(), registeredResource.getScheme()),e);
// return null;
// }
tr.setId(indexName + '.' + SOLR_INDEX_ARCHIVE_EXTENSION + '.' + archiveFormat);
tr.setAttributes(properties);
tr.setResourceType(SOLR_INDEX_ARCHIVE_RESOURCE_TYPE);
return new TransformationResult[] {tr};
}