@Override
	public void onAutoCompleteCreateReplacement(InterfaceController controller, SimpleAutoCompleteEntry entry) {
		Construct construct = entry.create(mDocument, this.construct.parent);
		ConstructEditor editor = mDocument.editorsFromConstruct(construct);
		WeakReference<ConstructEditor> weakParentEditor = mBoundEditorStore.get(construct.parent);
		if(weakParentEditor != null) { 
			ConstructEditor parentEditor = weakParentEditor.get();
			if(parentEditor != null)  {
				
				switch(this.construct.getAutoCompleteStyle()) { 
					case Replace:
						if(construct.parent.replaceChild(this.construct, construct)) {
							controller.mConstructSelector.Select(SelectionCause.Selected, editor);
						}
						break;
					
					default:
						System.err.println("Unsupported AutoCompleteStyle." + this.construct.getAutoCompleteStyle().toString() + " in MonospaceConstructEditor");
						break;
				}				
			}
		}
		
		Application.getApplication().hideAutoComplete(true);
	}