loadingContainer.addChild(indicatorImage);
            public HtmlComponent createComponent(Object object, Class type) {                                HtmlInlineContainer container = new HtmlInlineContainer();                addScripts(container);                                MetaSlotKey key = (MetaSlotKey) getContext().getMetaObject().getKey();                HtmlHiddenField valueField = new HtmlHiddenField();                valueField.setTargetSlot(key);                valueField.setId(key.toString() + "_AutoComplete");                valueField.setName(valueField.getId());                container.addChild(valueField);                valueField.setConverter(new AutoCompleteConverter(getClassName()));                                HtmlHiddenField oldValueField = new HtmlHiddenField();                oldValueField.setId(key.toString() + "_OldValue");                oldValueField.setName(oldValueField.getId());                container.addChild(oldValueField);                                HtmlTextInput textField = new HtmlTextInput();                textField.setId(key.toString());                textField.setName(textField.getId());                textField.setClasses(getTextFieldStyleClass());                textField.setSize(getSize());                textField.setOnKeyDown("javascript:autoCompleteKeyDownHandler(event, '" + textField.getId() +"');");                textField.setOnKeyUp("javascript:autoCompleteKeyUpHandler(event, '" + textField.getId() + "', '" + TYPING_VALUE + "');");                container.addChild(textField);                if (getRawSlotName() != null) {                    textField.setController(new UpdateRawNameController(getRawSlotName()));                }                                HtmlInlineContainer loadingContainer = new HtmlInlineContainer();                loadingContainer.setId(key.toString() + "_Indicator");                loadingContainer.setStyle("display: none;");                HtmlText loadingText = new HtmlText(RenderUtils.getResourceString("fenix.renderers.autocomplete.loading"));                loadingContainer.addChild(loadingText);                                HtmlLink link = new HtmlLink();                link.setModuleRelative(false);                link.setUrl("/images/autocomplete/spinner.gif");                HtmlImage indicatorImage = new HtmlImage();                indicatorImage.setSource(link.calculateUrl());                if (isIndicatorShown()) {                    container.addChild(loadingContainer);                }                HtmlText errorMessage = new HtmlText(RenderUtils.getResourceString("fenix.renderers.autocomplete.error"));                errorMessage.setId(key.toString() + "_Error");                errorMessage.setClasses(getErrorStyleClass());                errorMessage.setStyle("display: none;");                container.addChild(errorMessage);                                HtmlBlockContainer resultsContainer = new HtmlBlockContainer();                resultsContainer.setId(key.toString() + "_div");                resultsContainer.setClasses(getAutoCompleteStyleClass());                container.addChild(resultsContainer);                                addFinalScript(container, textField.getId(), resultsContainer.getId(), loadingContainer.getId());                                return container;            }