}
public ErrorHandler createErrorHandler(SearchConfiguration searchConfiguration) {
String errorHandlerClassName = searchConfiguration.getProperty( Environment.ERROR_HANDLER );
if ( StringHelper.isEmpty( errorHandlerClassName ) ) {
return new LogErrorHandler();
}
else if ( "log".equals( errorHandlerClassName.trim() ) ) {
return new LogErrorHandler();
}
else {
Class<?> errorHandlerClass = searchConfiguration.getClassLoaderService()
.classForName( errorHandlerClassName );
return ClassLoaderHelper.instanceFromClass(