I'm looking for some sort of a generic logical expression builder, like the SmartClient FilterBuilder but lighter - SmartClient weighs 500kb or ~160kb GZipped which is unacceptable for our application. Our server-side is Java/Spring-MVC, if it matters. Any suggestions?