} else if( "y".equals(typeString) ) {
type = FieldSelectorCentroid.Type.Y;
} else {
throw new Exception("Invalid FieldSelector centroid: "+fieldSelectorString);
}
return new FieldSelectorCentroid(fieldName,type);
}
}
return new FieldSelectorColumn(fieldSelectorString);
}