Bug 119566 Support template items in page header/footer
Currently you can't create template report items inside a page header/footer. This should be fixed.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java
*/
	public boolean isManagedByNameSpace( )
	{
		if ( getContainer( ) == null )
			return false;
		return getContainer( ).isManagedByNameSpace( getContainerSlot( ) );
	}
	/**
	 * Determines if the current element can be transformed to a template
	 * element. False will be returned if the element can not be dropped or the
	 * container of the current element can not contain the template element.
	 * 
	 * @param module
	 *            the root module of the element
	 * 
	 * @return true if it can be transformed, otherwise false.
	 */
	public boolean canTransformToTemplate( Module module )
	{
		if ( ( !canDrop( ) ) || ( isContainTamplateElement( ) ) )
			return false;
		IElementDefn templateReportItem = MetaDataDictionary.getInstance( )
				.getElement( ReportDesignConstants.TEMPLATE_REPORT_ITEM );
		IElementDefn templateDataSet = MetaDataDictionary.getInstance( )
				.getElement( ReportDesignConstants.TEMPLATE_DATA_SET );
		if ( getContainer( ) != null )
			return getContainer( ).canContain( module, getContainerSlot( ),
					templateReportItem )
					|| getContainer( ).canContain( module, getContainerSlot( ),
							templateDataSet );