Bug 213907 Provide a copy constructor for SubqueryDefinition.
Engine need a copy constructor to generate a SubqueryDefinition from an ISubqueryDefinition and change the name of the query.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedQuery.java
: ( (IGroupDefinition) groups.get( j ) ).getName( ) )
							&& j != i )
						throw new DataException( ResourceConstants.DUPLICATE_GROUP_NAME );
				}
				groupNameSet.add( group.getName( ) );
			}
			
			Map map = baseQueryDefn.getBindings( );
			if ( map != null )
			{
				Iterator it = map.keySet( ).iterator( );
				while ( it.hasNext( ) )
				{
					Object key = it.next( );
					IBinding binding = (IBinding)map.get( key );
					String groupName = null;
					if ( binding.getExpression( )!= null )
						groupName = binding.getExpression( ).getGroupName( );
					
					if( groupName == null )
					{
						if ( binding.getAggregatOns( ).size( ) == 0 )
							continue;
						groupName = binding.getAggregatOns( ).get( 0 ).toString( );
					}
					
					if ( ( !groupName
							.equals( IBaseExpression.GROUP_OVERALL ) )
							&& !groupNameSet.contains( groupName ) )
					{