*/
private static ErrorHandler createErrorHandler(Properties configuration) {
boolean sync = BatchedQueueingProcessor.isConfiguredAsSync( configuration );
String errorHandlerClassName = configuration.getProperty( Environment.ERROR_HANDLER );
if ( StringHelper.isEmpty( errorHandlerClassName ) ) {
return new LogErrorHandler();
}
else if ( errorHandlerClassName.trim().equals( "log" ) ) {
return new LogErrorHandler();
}
else {
return PluginLoader.instanceFromName( ErrorHandler.class, errorHandlerClassName,
SearchFactoryImpl.class, "Error Handler" );
}