props = sourceDesign.getPrivateProperties( ).getProperties( );
props = sourceDesign.getPrivateProperties( ); if ( props != null ) { EList propList = props.getProperties( ); for ( int i = 0; i < propList.size( ); i++ ) { Property prop = (Property) propList.get( i ); sourceHandle.setPrivateDriverProperty( prop.getName( ), prop.getValue( ) ); } }
	public void updateDataSourceHandle( DataSourceDesign sourceDesign,			OdaDataSourceHandle sourceHandle ) throws SemanticException	{		if ( sourceDesign == null || sourceHandle == null )			return;		DesignUtil.validateObject( sourceDesign );		CommandStack stack = sourceHandle.getModuleHandle( ).getCommandStack( );		stack.startTrans( null );		try		{			// extension id is set without undo/redo support.			sourceHandle.getElement( ).setProperty(					OdaDataSourceHandle.EXTENSION_ID_PROP,					sourceDesign.getOdaExtensionId( ) );			sourceHandle.setName( sourceDesign.getName( ) );			sourceHandle.setDisplayName( sourceDesign.getDisplayName( ) );			// set public properties.			List props = sourceDesign.getPublicProperties( ).getProperties( );			for ( int i = 0; i < props.size( ); i++ )			{				Property prop = (Property) props.get( i );				sourceHandle.setProperty( prop.getName( ), prop.getValue( ) );			}			// set private properties.			props = sourceDesign.getPrivateProperties( ).getProperties( );			for ( int i = 0; i < props.size( ); i++ )			{				Property prop = (Property) props.get( i );				sourceHandle.setPrivateDriverProperty( prop.getName( ), prop						.getValue( ) );			}		}		catch ( SemanticException e )		{			stack.rollback( );			throw e;		}		stack.commit( );	}