XPages Extension Library
for(viewEntry: viewEntryCollection) generates a NullPointerException when one of the entries is removed. I had to revert to getNextEntry, which is reprecated (to soon!).