{
Criteria criteria = new Criteria();
Iterator iter = pks.iterator();
while (iter.hasNext())
{
ObjectKey pk = (ObjectKey)iter.next();
SimpleKey[] keys = (SimpleKey[])pk.getValue();
Criteria.Criterion c0 = criteria.getNewCriterion(
ROLE_ID, keys[0], Criteria.EQUAL);
Criteria.Criterion c1 = criteria.getNewCriterion(
PERMISSION_ID, keys[1], Criteria.EQUAL);
c0.and(c1);