private void configureClientThread(ServletContext context,
String bucket,
String instanceID,
MyrrixRecommender recommender) {
ClientThread theThread;
try {
theThread = loadClientThreadClass(context, bucket, instanceID);
} catch (IOException ioe) {
throw new IllegalStateException(ioe);
} catch (ClassNotFoundException cnfe) {
throw new IllegalStateException(cnfe);
}
if (theThread != null) {
theThread.setRecommender(recommender);
clientThread = theThread;
new Thread(theThread, "MyrrixClientThread").start();
}
}