RangeProcessor parent, long originalPosition) throws ReportException {
if(range instanceof ColRowRangeGeneric) {
return new GenericProcessor(parent, (ColRowRangeGeneric)range, originalPosition);
}
if(range instanceof ColRowRangeGroup) {
return new GroupProcessor(parent, (ColRowRangeGroup)range, originalPosition);
}
if(range instanceof ColRowRangeCrossReport) {
return new CrossReportProcessor(parent, (ColRowRangeCrossReport)range, originalPosition);
}