Neo4j "count" queries are totally illogical. If you have no Node(s) for the cypher query and do something like
START T=node:DN_TYPES(class="org.jpox.samples.annotations.models.company.Person") RETURN count(T)
then this just returns an empty result set (iter.hasNext() == false). Need to cater for this nonsense.