throw new NullPointerException("sessions");
}
Set<IoSession> answer = new LinkedHashSet<IoSession>();
for (IoSession s: sessions) {
OgnlContext context = (OgnlContext) Ognl.createDefaultContext(s);
context.setTypeConverter(typeConverter);
context.put(AbstractPropertyAccessor.READ_ONLY_MODE, true);
context.put(AbstractPropertyAccessor.QUERY, query);
Object result = Ognl.getValue(expression, context, s);
if (result instanceof Boolean) {
if (((Boolean) result).booleanValue()) {
answer.add(s);
}