sessionHandle = DesignEngine.newSession( (ULocale) null ); designHandle = sessionHandle.createDesign( "myDesign" ); design = designHandle.getDesign( );
createDesign( null );
	private void setupDesign( ) throws SemanticException	{		sessionHandle = DesignEngine.newSession( (ULocale) null );		designHandle = sessionHandle.createDesign( "myDesign" ); //$NON-NLS-1$		design = designHandle.getDesign( );		ElementFactory factory = designHandle.getElementFactory( );		FreeFormHandle container1 = factory.newFreeForm( "Container 1" );//$NON-NLS-1$		designHandle.getComponents( ).add( container1 );		LabelHandle label1 = factory.newLabel( "Label 1" );//$NON-NLS-1$		container1.getReportItems( ).add( label1 );		LabelHandle label2 = factory.newLabel( "Label 2" );//$NON-NLS-1$		container1.getReportItems( ).add( label2 );		LabelHandle label3 = factory.newLabel( "Label 3" );//$NON-NLS-1$		container1.getReportItems( ).add( label3 );		FreeFormHandle container2 = factory.newFreeForm( "Container 2" );//$NON-NLS-1$		designHandle.getBody( ).add( container2 );		FreeFormHandle container3 = factory.newFreeForm( "Container 3" );//$NON-NLS-1$		designHandle.getBody( ).add( container3 );		FreeFormHandle container4 = factory.newFreeForm( null );		designHandle.getBody( ).add( container4 );		StyleHandle style1 = factory.newStyle( "Style 1" );//$NON-NLS-1$		designHandle.getStyles( ).add( style1 );		StyleHandle style2 = factory.newStyle( "Style 2" );//$NON-NLS-1$		designHandle.getStyles( ).add( style2 );		StyleHandle style3 = factory.newStyle( "Style 3" );//$NON-NLS-1$		designHandle.getStyles( ).add( style3 );		DataSourceHandle dataSource1 = factory				.newOdaDataSource( "Data Source 1" );//$NON-NLS-1$		designHandle.getDataSources( ).add( dataSource1 );		DataSourceHandle dataSource2 = factory				.newOdaDataSource( "Data Source 2" );//$NON-NLS-1$		designHandle.getDataSources( ).add( dataSource2 );		DataSetHandle dataSet1 = factory.newOdaDataSet( "Data Set 1" ); //$NON-NLS-1$		designHandle.getDataSets( ).add( dataSet1 );		dataSet1.setDataSource( dataSource1.getName( ) );		MasterPageHandle masterPage1 = factory.newGraphicMasterPage( "My Page" ); //$NON-NLS-1$		designHandle.getMasterPages( ).add( masterPage1 );		container1.setStyle( (SharedStyleHandle) style2 );		label1.setStyle( (SharedStyleHandle) style2 );		label1.setDataSet( dataSet1 );		design.setProperty( ReportDesign.AUTHOR_PROP, "Bob the Builder" );//$NON-NLS-1$		design.setProperty( ReportDesign.COMMENTS_PROP, "Sample design" );//$NON-NLS-1$	}