if (comparison.getValue() != null) {
final String sOperator = comparison.getOperator()
.getOperator();
if (!"like".equalsIgnoreCase(sOperator)) {
if (comparison instanceof Between) {
Between between = (Between) comparison;
query.setParameter(name + "_1", comparison
.getValue());
query
.setParameter(name + "_2", between
.getValue2());
} else if (comparison instanceof VerifiedBetween) {
VerifiedBetween between = (VerifiedBetween) comparison;
query.setParameter(name + "_1", comparison
.getValue());
query
.setParameter(name + "_2", between
.getValue2());
} else {
query.setParameter(name, comparison.getValue());
}