String directory = fieldOperatorNodes.get(0).getValue();
FieldOperator operator = fieldOperatorNodes.get(0).getFieldOperator();
if (fieldOperatorNodes.size() == 1) {
if (operator == FieldOperator.EQUAL) {
criteria = new StructureGroupDirectoryCriteria(directory);
} else {
criteria = new StructureGroupDirectoryCriteria(directory, operator);
}
} else {
boolean includeChildStructureGroups = Boolean.parseBoolean(fieldOperatorNodes.get(1).getValue());
criteria = new StructureGroupDirectoryCriteria(directory, operator, includeChildStructureGroups);
}
}