Bug 200755 [smoke]Fail to preview Crosstab after deploy BIRT in application servers.[0601][1102]
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ServiceForQueryResults.java
else
						return -1;
				}
			} );
		}
		/**
		 * Populate the calculation level of the aggr defns.
		 * 
		 * @param aggrDefns
		 * @param nameMap
		 * @param aggrRefMap
		 * @param aggrRefGroupLevelMap
		 */
		private void popualteCalcuateRound( List aggrDefns, Map nameMap,
				Map aggrRefMap, Map aggrRefGroupLevelMap )
		{
			List aggrDefnsCopy = new ArrayList();
			aggrDefnsCopy.addAll( aggrDefns );
			int calculateRound = -1;
			while( aggrDefnsCopy.size( ) > 0 )
			{
				calculateRound++;
				List removedNames = new ArrayList();
				for( Iterator it = aggrRefMap.keySet( ).iterator( ); it.hasNext( );)
				{
					String name = it.next( ).toString( );
					IAggrInfo defn = (IAggrInfo)nameMap.get( name );
					Set aggrRefList = (Set)aggrRefMap.get( name );
					if ( aggrRefList.size( ) == 0 )
					{