public void scanDatabase(final Database db) throws ServletException, InterruptedException {
//NTF Keeping JG's implementation since he made an enhancement to the IconNote class for it! :)
log_.finest("Scanning database " + db.getApiPath() + " for Xots Tasklets");
try {
DatabaseDesign design = db.getDesign();
IconNote icon = design.getIconNote();
if (icon != null) {
String[] xotsClassNames = icon.getXotsClassNames();
if (xotsClassNames != null && xotsClassNames.length > 0) {
if (TRACE) {
System.out.println("TRACE: Adding Xots Tasklets for database " + db.getApiPath());