}
}
// ask the server to delete the doomed resources
ResourceManagerLocal resourceManager = LookupUtil.getResourceManager();
List<Integer> deletedResourceIds = resourceManager.uninventoryResources(subject, ArrayUtils
.unwrapCollection(doomedResourceIds));
// a doomed resource is one that we asked to be deleted.
// a deleted resource is one that was actually deleted.
// if a doomed resource ID is not found in the list of deleted resources, it was probably a non-existing resource