private String getQuery(final AttributeCond cond, final boolean not, final List<Object> parameters,
final SubjectType type, final SearchSupport svs) {
final AttributableUtil attrUtil = AttributableUtil.getInstance(type.asAttributableType());
AbstractNormalSchema schema = schemaDAO.find(cond.getSchema(), attrUtil.schemaClass());
if (schema == null) {
LOG.warn("Ignoring invalid schema '{}'", cond.getSchema());
return EMPTY_ATTR_QUERY;
}