if (request.getParameterValues("useSearchPlugin") != null) {
ArrayList<Integer> results = null;
ArrayList<Integer> preProcessResults = null;
String[] usePlugins = request.getParameterValues("useSearchPlugin");
SearchPlugin plugin;
for (String usePlugin : usePlugins) {
try {
Class c = Class
.forName("edu.uga.galileo.voci.plugins.search."
+ usePlugin);
Constructor constructor = c.getConstructor((Class[]) null);
plugin = (SearchPlugin) constructor
.newInstance((Object[]) null);
Logger.debug("Pre-processing search using " + usePlugin
+ ".");
preProcessResults = plugin.processRequest(request);
if (preProcessResults == null) {
// if a plugin responds with null, we skip it, b/c
// it's not behaving properly
Logger.warn(usePlugin + " returned a null value "
+ "in search pre-processing");