// Need to add audit trail entries for each package as well, so the audit trail doesn't read
// as the operation is still being performed
Set<InstalledPackageHistory> requestPackages = request.getInstalledPackageHistory();
for (InstalledPackageHistory history : requestPackages) {
InstalledPackageHistoryStatus packageStatus = history.getStatus();
// Just to be safe, we're only going to "close out" any in progress entries. All entries in this
// list will likely be in this state, and we'd need to handle resubmissions differently anyway.
switch (packageStatus) {
case BEING_DELETED: