// expand columns without name
for (ColumnImpl column : qomTree.getColumns()) {
if (column.getColumnName() == null) {
QueryObjectModelFactory qomFactory = getQOMFactory();
NodeTypeManagerImpl ntMgr = session.getNodeTypeManager();
SelectorImpl selector = qomTree.getSelector(column.getSelectorQName());
NodeTypeImpl nt = ntMgr.getNodeType(selector.getNodeTypeQName());
for (PropertyDefinition pd : nt.getPropertyDefinitions()) {
PropertyDefinitionImpl propDef = (PropertyDefinitionImpl) pd;
if (!propDef.unwrap().definesResidual() && !propDef.isMultiple()) {
String sn = selector.getSelectorName();
String pn = propDef.getName();
columns.add((ColumnImpl) qomFactory.column(sn, pn, sn + "." + pn));
}
}
} else {