if (file instanceof CSHole) {
// process file marked for deletion
}
Smitty's suggestion should work and follows Java standards, but for some reason the CSSDK's "preferred" way is
if (file.getKind() == CSHole.KIND)
Because sometimes it'll create different types of objects (like PhantomNode) which are conceptually equivalent to a CSHole but Smitty's statement would return false.