switch (searchConditionWrapper.getFilterType()) {
case ATTRIBUTE:
// AttributeCond or SyncopeUserCond
final String schema = searchConditionWrapper.getFilterName();
final AttributeCond attributeCond;
if (dnames.getObject().contains(schema)) {
attributeCond = new AttributableCond();
nodeCond = searchConditionWrapper.isNotOperator()
? NodeCond.getNotLeafCond((AttributableCond) attributeCond)
: NodeCond.getLeafCond((AttributableCond) attributeCond);
} else {
attributeCond = new AttributeCond();
nodeCond = searchConditionWrapper.isNotOperator()
? NodeCond.getNotLeafCond(attributeCond)
: NodeCond.getLeafCond(attributeCond);
}
attributeCond.setSchema(schema);
attributeCond.setType(searchConditionWrapper.getType());
attributeCond.setExpression(searchConditionWrapper.getFilterValue());
break;
case MEMBERSHIP:
final MembershipCond membershipCond = new MembershipCond();