result.addProperty(new Property(path[0], MetadataRoot.OBJECT));
Property prop = new Property(path[0], MetadataRoot.OBJECT); initLineInfo(prop); result.addProperty(prop);
    QueryType generateEvents() {        Event event = new Event();        Operation op = m_sql.generateOperation();        event.addOperation(op);        QueryType result =  new QueryType(m_name, event);        result.setReturnsLowerBound(m_lowerBound);        result.setReturnsUpperBound(m_upperBound);        for (Iterator it = m_attrs.values().iterator(); it.hasNext(); ) {            PropertyDef pd = (PropertyDef) it.next();            result.addProperty(pd.generateLogicalModel());        }        for (Iterator it = op.getMappings(); it.hasNext(); ) {            Mapping mapping = (Mapping) it.next();            String[] path = mapping.getPath();            if (!result.hasProperty(path[0])) {                result.addProperty(new Property(path[0],                                                MetadataRoot.OBJECT));            }        }        if (m_options != null) {            m_options.setOptions(result);        }        return result;    }