</BUG>
}
}
return sb.toString();
}
<BUG>protected String getWhere(String key) {
</BUG>
String join = StringPool.BLANK;
if (key.equals("userGroupGroupRole")) {
join = CustomSQLUtil.get(JOIN_BY_USER_GROUP_GROUP_ROLE);

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();
}
protected String getJoin(String key) {
String join = StringPool.BLANK;
if (key.equals("userGroupGroupRole")) {
join = CustomSQLUtil.get(JOIN_BY_USER_GROUP_GROUP_ROLE);
