Collection emps = (Collection) m_pm.newQuery(Employee.class).execute(); Collection lukes = (Collection) m_pm.newQuery (Extensions.OQL, "filter($1, name == $2)").execute(emps, "Luke Skywalker");
Collection emps = query(Employee.class); Collection lukes = query("filter($1, name == $2)", emps, "Luke Skywalker");
    private Collection lukes() {        Collection emps = (Collection) m_pm.newQuery(Employee.class).execute();        Collection lukes = (Collection) m_pm.newQuery            (Extensions.OQL,             "filter($1, name == $2)").execute(emps, "Luke Skywalker");        return lukes;    }