// Whether or not to use the collection template
params.setUseCollectionTemplate(ConfigurationManager.getBooleanProperty("mets.default.ingest.useCollectionTemplate", false));
// ingest the item from the temp file
DSpaceObject ingestedObject = pi.replace(context, item, depositFile, params);
if (ingestedObject == null)
{
verboseDescription.append("Failed to replace the package; throwing exception");
throw new SwordError(DSpaceUriRegistry.UNPACKAGE_FAIL, "METS package ingester failed to unpack package");
}