Lines 67- 75 are moved to this new method.
public ApplicationDataModel.ADM.ApplicationDataModel TransformSIIToADM(List<ShippedItemInstance> ShippedItems, ILogger _logger)
{
ApplicationDataModel.ADM.ApplicationDataModel adm = new ApplicationDataModel.ADM.ApplicationDataModel();
// replace fileName with the ShipFromParty.Id_shipmentId
adm.Catalog = new Catalog() { Description = fileName };
//Map the document data into the Catalog
Mapper mapper = new Mapper(adm.Catalog);
errors.AddRange(mapper.MapDocument(ShippedItems));
return adm;
}