Bug 120291 Data source and data set extended from library in a report are invalid.
Description: Data source and data set extended from library in a report are invalid. Steps to reproduce: 1. Drag a data source and data set from library explorer view. Noticed that their names are different from the names in library. 2. I want to use the data source extended from library to create a new data set. The data source is invalid. 3. The data set from library is also invalid. When editing it, NullPointerException is thrown out.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/StructureFactory.java
/**
	 * Creates an empty extended property structure.
	 * 
	 * @return an empty extended property structure
	 */
	public static ExtendedProperty createExtendedProperty( )
	{
		return new ExtendedProperty( );
	}
	/**
	 * Creates an embedded image from another library embedded image.
	 * 
	 * @param baseImage
	 * @return the created embedded image
	 */
	public static EmbeddedImage createEmbeddedImage(
			EmbeddedImageHandle baseImage )
	{
		if ( baseImage == null )
			return null;
		EmbeddedImage image = new EmbeddedImage( );
		Module module = baseImage.getModule( );
		String namespace = module instanceof Library ? ( (Library) module )
				.getNamespace( ) : null;
		StructRefValue libReference = new StructRefValue( namespace, baseImage
				.getName( ) );
		image.setProperty( EmbeddedImage.LIB_REFERENCE_MEMBER, libReference );
		return image;
	}
}