sessionHandle = DesignEngine.newSession( Locale.ENGLISH);
sessionHandle = DesignEngine.newSession( ULocale.ENGLISH);
	public void testCreatLibrary( ) throws Exception	{		openDesign(fileName);		//		"Find the element in Design		DataSourceHandle dataSourceHandle = (DataSourceHandle)designHandle.findDataSource( "db2d" );		assertNotNull("Datasource should not be null", dataSourceHandle);		DataSetHandle dataSetHandle = (DataSetHandle)designHandle.findDataSet( "db2ds" );		assertNotNull("Dataset should not be null", dataSetHandle);		TextItemHandle textHandle = (TextItemHandle)designHandle.findElement( "myText" );		assertNotNull("Text should not be null", textHandle); 		TableHandle tableHandle = (TableHandle)designHandle.findElement( "myTable" );		assertNotNull("Table should not be null", tableHandle);		StyleHandle styleHandle = (StyleHandle)designHandle.findStyle( "myStyle" );		assertNotNull("Style should not be null", styleHandle);		ParameterHandle parameterHandle = (ParameterHandle)designHandle.findParameter( "Parameter1" );		assertNotNull("Parameter should not be null", parameterHandle);		LabelHandle labelHandle = (LabelHandle)designHandle.findElement( "myLabel" );		assertNotNull("Label should not be null", labelHandle);		ImageHandle imageHandle = (ImageHandle)designHandle.findElement( "myImage" );		assertNotNull("Image should not be null", imageHandle);		DataItemHandle dataHandle = (DataItemHandle)designHandle.findElement( "myData" );		assertNotNull("Data should not be null", dataHandle);		//		Create a Library		sessionHandle = DesignEngine.newSession( Locale.ENGLISH);		libraryHandle = sessionHandle.createLibrary();		//		Import the element into Library		ElementExportUtil.exportElement( dataSourceHandle, libraryHandle, false );		ElementExportUtil.exportElement( dataSetHandle, libraryHandle, false );		ElementExportUtil.exportElement( labelHandle, libraryHandle, false );		ElementExportUtil.exportElement( textHandle, libraryHandle, false );		ElementExportUtil.exportElement( tableHandle, libraryHandle, false );		ElementExportUtil.exportElement( styleHandle, libraryHandle, false );		ElementExportUtil.exportElement( parameterHandle, libraryHandle, false );		ElementExportUtil.exportElement( imageHandle, libraryHandle, false );		ElementExportUtil.exportElement( dataHandle, libraryHandle, false );			super.saveLibraryAs(outFileName);		assertTrue( compareTextFile( goldenFileName, outFileName ) );			}