public static Iterator selectObjectsOfClass(ObjectStore os, Class cls) throws ObjectStoreException {
public static Iterator selectObjectsOfClass(ObjectStore os, Class cls) {
    public static Iterator selectObjectsOfClass(ObjectStore os, Class cls)        throws ObjectStoreException {        Query q = new Query();        q.setDistinct(false);        QueryClass qc = new QueryClass(cls);        q.addToSelect(qc);        q.addFrom(qc);        SingletonResults res = new SingletonResults(q, os, os.getSequence());        res.setBatchSize(500);        return res.iterator();    }