Bug 184762 BIRT Model - Enhancments to the level defintion
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ElementFactory.java
InvalidParentException.DESIGN_EXCEPTION_PARENT_NOT_INCLUDE );
			}
			DesignElement base = lib.getElementByID( baseElement.getID( ) );
			
			
			if ( base == null
					|| base.getDefn( ) != baseElement.getElement( ).getDefn( ) )
			{
				throw new InvalidParentException(
						null,
						baseElement.getName( ),
						InvalidParentException.DESIGN_EXCEPTION_PARENT_NOT_FOUND );
			}
			return newElementFrom( name, base.getHandle( lib ) );
		}
		
		return null;
	}
	/**
	 * Creates one new element based on the given element. The new element will
	 * extends the given one. The element must be extendable.
	 * 
	 * @param name
	 *            the optional new element name
	 * @param baseElement
	 *            the base element
	 * @return the handle to the new element.
	 * @throws ExtendsException
	 *             if the "extends" relationship is illegal
	 */