Bug 186940 Style name in theme cannot be identify by auto when reopen the library[01]
Description: Style name in theme cannot be identify by auto when reopen the library[01] Step: 1.Open a library and add a theme 2.New a style on the theme and use the default name that is "NewStyle" 3.Save the library, close it and reopen it again. 4.New another style on the same theme Actual result: The default style name on second times is also "NewStyle" Exception result: The default style name on second times is "NewStyle1"
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/GroupElementHandleTest.java
DesignElementHandle handle2 = elemFactory.newSimpleMasterPage( "page2" ); 
		ArrayList elements = new ArrayList( );
		elements.add( handle1 );
		elements.add( handle2 );
		GroupElementHandle groupElementHandle = new SimpleGroupElementHandle(
				designHandle, elements );
		
		groupElementHandle.setStringProperty( MasterPage.TYPE_PROP,
				DesignChoiceConstants.PAGE_SIZE_CUSTOM );
		groupElementHandle.setStringProperty( MasterPage.HEIGHT_PROP, "12pt" ); 
		assertEquals(
				"12pt", handle1.getStringProperty( MasterPage.HEIGHT_PROP ) ); 
		assertEquals(
				"12pt", handle2.getStringProperty( MasterPage.HEIGHT_PROP ) ); 
		groupElementHandle.clearProperty( MasterPage.HEIGHT_PROP );
		assertNull( handle1.getStringProperty( MasterPage.HEIGHT_PROP ) );
		assertNull( handle2.getStringProperty( MasterPage.HEIGHT_PROP ) );
		
		UserPropertyDefn up1 = new UserPropertyDefn( );
		up1.setName( "UP1" ); 
		up1.setType( MetaDataDictionary.getInstance( ).getPropertyType(
				PropertyType.INTEGER_TYPE ) );
		handle1.addUserPropertyDefn( up1 );
		handle2.addUserPropertyDefn( up1 );
		groupElementHandle.setProperty( "UP1", "123" ); 
		assertEquals( "123", handle1.getStringProperty( "UP1" ) ); 
		assertEquals( "123", handle2.getStringProperty( "UP1" ) ); 
		
		
		GroupPropertyHandle propHandle = groupElementHandle