if ( parent.getContainerSlot( ) != Module.COMPONENT_SLOT )
if ( parent.getContainerSlot( ) != IModuleModel.COMPONENT_SLOT )
	private void addToNamespace( DesignElement content )	{		String name = content.getName( );		ElementDefn contentDefn = (ElementDefn) content.getDefn( );		// Disallow duplicate names.		Module module = handler.getModule( );		if ( name == null				&& contentDefn.getNameOption( ) == MetaDataConstants.REQUIRED_NAME )		{			// if element is extended-item and version less than 3.2.8, do			// nothing and returns			if ( ( content instanceof ExtendedItem && handler.versionNumber < VersionUtil.VERSION_3_2_8 ) )				return;			handler.getErrorHandler( ).semanticError(					new NameException( content, 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( content, 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 ExtendsForbiddenException(											content,											content.getElementName( ),											ExtendsForbiddenException.DESIGN_EXCEPTION_PARENT_NOT_IN_COMPONENT ) );					return;				}			}			ns.insert( content );		}	}