private boolean nameIsHost(CopperElementReference symbol)
	{
		if(currentParser.getType() != CopperElementType.EXTENDED_PARSER) return true;
		ExtendedParserBean currentExtendedParser = (ExtendedParserBean) currentParser;
		
		if(symbol.isFQ() &&
		   !symbol.getGrammarName().equals(currentGrammar.getName()) &&
		   !symbol.getGrammarName().equals(currentExtendedParser.getHostGrammar()))
		{
			
			if(currentGrammar.getType() == CopperElementType.EXTENSION_GRAMMAR)
			{
				reportError(symbol.getLocation(),"Extension grammar " + currentGrammar.getDisplayName() + " may not contain a reference to symbol " + getDisplayName(symbol) + ", which is defined neither in " + currentGrammar.getDisplayName() + ", nor in the parser's host grammar");
				return false;				
			}
			else
			{
				reportError(symbol.getLocation(),"The host grammar of an extended parser may not contain a reference to external symbol " + getDisplayName(symbol));
				return false;
			}
		}
		return true;
	}