JCR-2087: Upgrade to Java 5 as the base platform Use Iterator<NodeState> instead of NodeStateIterator