Iterator<ProjectionSpec> projectionIterator = projectionSpecs.iterator();
while (projectionIterator.hasNext() && !err) {
ProjectionSpec projection = (ProjectionSpec) projectionIterator.next();
Set<Attribute> reqAttr = projection.requiredAttributes();
Iterator<Attribute> j = reqAttr.iterator();
while (j.hasNext() && !err) {
Attribute a = (Attribute) j.next();
if (attributes.relationName == null)
attributes.relationName = a.relationName();