StringBundler sb = new StringBundler(params.size());
for (Map.Entry<String, Object> entry : params.entrySet()) {
String key = entry.getKey();
Object value = entry.getValue();
if (Validator.isNotNull(value)) {
<BUG>sb.append(getWhere(key));
</BUG>
}
}
return sb.toString();

StringBundler sb = new StringBundler(params.size());
for (Map.Entry<String, Object> entry : params.entrySet()) {
String key = entry.getKey();
Object value = entry.getValue();
if (Validator.isNotNull(value)) {
sb.append(getJoin(key));
}
}
return sb.toString();
