I have a statefull sesion bean referencing to 20 entity beans. It performs delete operation on some entity beans on the request of user. Since some of these entity beans refer to other beans. Cascade delete problem arises. So I have to test if an entity has been deleted before perform a remove operation.