Tommy Valand improved the idea: In his solution the isDead method of the NotesBase class is accessed, and this works better, because the method addionally checks for the C object handle.
Here you can find the method: http://stackoverflow.com/questions/12740889/what-is-the-least-expensive-way-to-test-if-a-view-has-been-recycled
Update:
If you have problems with the java security manager, please add the following to the the java.policy file:
grant { permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; };
Pingback: Quick-n-Dirty: A simple isRecycled() method | blog@hasselba.ch