public boolean matches(Object o) { if (o instanceof InteractionContext) { InteractionContext ctx = (InteractionContext) o; if (ctx.getResource() == null) return false; return true; } return false; }