Bug 191168 [Regression]Exception occurs when resize masterpage in library
Description: Exception occurs when resize masterpage in library. Build number:2.2.0.v20070606-0630 Regression bug:187443 Steps to reproduce: 1. New a library. 2. Go to Master Page, resize the master page using the ruler. Expected result: 1. Layout works correctly. 2. No exception is thrown out. Error log: An unexpected internal exception occurred.Please see log for detail. Plug-in Provider:Eclipse.org Plug-in Name:BIRT Designer UI Plug-in ID:org.eclipse.birt.report.designer.ui Version:2.2.0.v20070606-0630 Error Code:Error.GUIException.invokedByUnexpectedException Error Message:org.eclipse.birt.report.designer.internal.lib.lalyout.LibraryReportDesignLayout
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/Module.java
* Finds an embedded image by name.
	 * 
	 * @param imageName
	 *            the embedded image name
	 * @return the defined image that matches, or <code>null</code> if the
	 *         image name was not found in the embedded images.
	 */
	public EmbeddedImage findImage( String imageName )
	{
		StructureDefn defn = (StructureDefn) MetaDataDictionary.getInstance( )
				.getStructure( EmbeddedImage.EMBEDDED_IMAGE_STRUCT );
		return (EmbeddedImage) StructureRefUtil.findStructure( this, defn,
				imageName );
	}
	/**
	 * Gets the property definition whose detail type is of the given structure
	 * name.
	 * 
	 * @param structureName
	 *            the structure name to search
	 * @return the property definition whose detail type is of the given
	 *         structure name, otherwise null
	 */
	public ElementPropertyDefn getReferencablePropertyDefn( String structureName )
	{
		if ( referencableProperties == null )
		{
			referencableProperties = new HashMap( );
			referencableProperties.put( ConfigVariable.CONFIG_VAR_STRUCT,
					getPropertyDefn( CONFIG_VARS_PROP ) );