Class TryWithResourcesCheck