if (parameterValues instanceof Map) {
toRemoved = (Collection) qc.execute((Map) parameterValues, pm, this);
} else if (parameterValues.getClass().isArray()) {
toRemoved = (Collection) qc.execute((Object[]) parameterValues, pm, this);
} else {
throw new SpeedoRuntimeException("Bad state: no param specified in query");
}
for (Iterator it = toRemoved.iterator(); it.hasNext();) {
Object o = it.next();
if (o instanceof PersistentObjectItf) {
pm.speedoDeletePersistent(o);