new ExtendsException(
new ExtendsForbiddenException(
	private void addToNamespace( DesignElement content )	{		String name = content.getName( );		ElementDefn contentDefn = (ElementDefn) content.getDefn( );		assert !StringUtil.isBlank( name )				|| contentDefn.getNameOption( ) != MetaDataConstants.REQUIRED_NAME;		// Disallow duplicate names.		Module module = handler.getModule( );		if ( name == null				&& contentDefn.getNameOption( ) == MetaDataConstants.REQUIRED_NAME )		{			handler.getErrorHandler( ).semanticError(					new NameException( container, name,							NameException.DESIGN_EXCEPTION_NAME_REQUIRED ) );			return;		}		int id = contentDefn.getNameSpaceID( );		if ( name != null && id != MetaDataConstants.NO_NAME_SPACE				&& container.isManagedByNameSpace( slotID ) )		{			NameSpace ns = module.getNameSpace( id );			if ( module.getNameSpace( id ).contains( name ) )			{				handler.getErrorHandler( ).semanticError(						new NameException( container, name,								NameException.DESIGN_EXCEPTION_DUPLICATE ) );				return;			}			DesignElement parent = content.getExtendsElement( );			if ( id == Module.ELEMENT_NAME_SPACE && parent != null )			{				if ( parent.getContainerSlot( ) != Module.COMPONENT_SLOT )				// if ( !module.getSlot( Module.COMPONENT_SLOT ).contains(				// parent ) )				{					handler							.getErrorHandler( )							.semanticError(									new ExtendsException(											content,											content.getElementName( ),											ExtendsException.DESIGN_EXCEPTION_PARENT_NOT_IN_COMPONENT ) );					return;				}			}			ns.insert( content );		}	}