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
Map parentBindings = queryDef.getBindings( );
			addParentBindings(parentBindings);
		}
	}
	/**
	 * 
	 * @param parentBindings
	 * @throws DataException 
	 */
	private void addParentBindings( Map parentBindings ) throws DataException {
		Iterator it = parentBindings.keySet( ).iterator( );
		while ( it.hasNext( ) )
		{
			Object o = it.next( );
			IBaseExpression expr = ((IBinding)parentBindings.get( o )).getExpression( );
			if ( expr instanceof IScriptExpression )
			{
				if (!ExpressionUtil.hasAggregation( ( (IScriptExpression) expr ).getText( ) ))
				{
					if ( baseQueryDefn.getBindings( )
							.get( o ) == null )
					{	
						IBinding binding = new Binding( o.toString( ) );
						binding.setDataType( expr.getDataType( ) );
						binding.setExpression( copyScriptExpr( expr ) );
						baseQueryDefn.addBinding( binding );
					}
				}
			}
		}