Signature sig = getSignature(type, om.getRetrieveAll(), null, null); return new Query(sig, null);
    public Query getQuery(ObjectType type) {        ObjectMap om = type.getRoot().getObjectMap(type);        if (isStatic(om)) {            return m_sqs.getQuery(type);        } else {            return m_dqs.getQuery(type);        }    }