Checked for valueObjects.isEmpty() instead of entityEJBs.
Previous version never returned any results but this one works.
Authored by: keess 2002-06-14
Parent: [r145]
Child: [r147]