public void nutchPerform(ComponentContext tileContext,
HttpServletRequest request, HttpServletResponse response,
ServletContext servletContext) throws ServletException, IOException {
ServiceLocator serviceLocator=getServiceLocator(request);
SpellCheckerTerms spellCheckerTerms = null;
if (spellCheckerBean != null) {
spellCheckerTerms = spellCheckerBean.checkSpelling(serviceLocator.getSearch().getQuery(), serviceLocator.getSearch().getQueryString());
}
SearchForm form=(SearchForm)serviceLocator.getSearchForm().clone();
form.setValue(SearchForm.NAME_QUERYSTRING,spellCheckerTerms.getSpellCheckedQuery());
String spellQuery = form.getParameterString("utf-8");
request.setAttribute(ATTR_SPELL_TERMS, spellCheckerTerms);
request.setAttribute(ATTR_SPELL_QUERY, spellQuery);
}