Bug 142432 MasterPage from library can't be restored to modify
Details: MasterPage from library can't be restored to modify Step: 1.New a library named lib1, and insert a masterpage named lib-mp. 2.Publish the library into resource folder. 3.New a report design and use lib1. 4.Drop the lib-mp from library explorer into outline of report design. 5.Double click lib-mp, and switch to Property editro tab. 6.Click restore. Actual result: Pop up an error message and said that the master page cannot specify size the page type is not custom.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/DesignElementHandle.java
getElement( ),
					TemplateException.DESIGN_EXCEPTION_CREATE_TEMPLATE_ELEMENT_FORBIDDEN );
		TemplateCommand cmd = new TemplateCommand( getModule( ), getContainer( )
				.getElement( ) );
		TemplateElement template = cmd.createTemplateElement( getElement( ),
				getElement( ).getContainerSlot( ), name );
		if ( template == null )
			return null;
		return (TemplateElementHandle) template.getHandle( module );
	}
	/**
	 * Creates a template element handle and transforms the current element
	 * handle to the created template element if the current element is based on
	 * a template parameter definition.
	 * 
	 * @param name
	 *            the name of created template element handle
	 * @return the template element handle
	 * @throws SemanticException
	 *             if the current element can not be transformed to a template
	 *             element, current element has no template parameter
	 *             definition, current module is not a report design or some
	 *             containing contexts don't match
	 */
	public TemplateElementHandle revertToTemplate( String name )
			throws SemanticException
	{
		if ( getRoot( ) == null )
			throw new TemplateException(
					getElement( ),