Bug 152830 Need model's support to add jar files
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/StructureFactory.java
* 
	 * @return the created embedded image
	 * @throws LibraryException
	 *             if the library has the <code>baseImage</code> is not
	 *             included in the <code>targetModule</code>
	 */
	public static EmbeddedImage newEmbeddedImageFrom(
			EmbeddedImageHandle baseImage, String name,
			ModuleHandle targetModule ) throws LibraryException
	{
		if ( baseImage == null || targetModule == null )
			return null;
		EmbeddedImage image = new EmbeddedImage( );
		Module baseModule = baseImage.getModule( );
		if ( baseModule instanceof ReportDesign )
			return null;
		
		Library lib = targetModule.getModule( ).getLibraryByLocation(
				baseModule.getLocation( ) );
		if ( lib == null )
		{
			throw new LibraryException( baseModule,
					new String[]{( (Library) baseModule ).getNamespace( )},
					LibraryException.DESIGN_EXCEPTION_LIBRARY_NOT_FOUND );
		}
		String namespace = lib.getNamespace( );
		StructRefValue libReference = new StructRefValue( namespace, baseImage
				.getName( ) );
		image.setProperty( EmbeddedImage.LIB_REFERENCE_MEMBER, libReference );
		image.setName( name );