code: private void addOrUpdateTable(File file) {
          try {
              String insertStmnt = FileUtils.readFileToString(file);
              DataSource ds = processSql(insertStmnt);
              DataSource existingDs = db().getDataSource(ds.getName());
              if (existingDs == null) {//We never saw this table before.
                  db().addDataSource(ds);
                  return;
              }
              // If startTime/endTime/templatePath changed then we should update the table.
              if (existingDs.getStartTime() != ds.getStartTime() || 
                      existingDs.getEndTime() != ds.getEndTime() ||
                      !existingDs.getTemplatePath().equals(ds.getTemplatePath())) {
                  // We have to reuse the existing entity bean(else update will fail).
                  existingDs.updateFrom(ds);
                  db().updateDataSource(existingDs);
              }                 
          } catch (IOException ex) {
              log.error("Exception while loading druid sql file {} : {}", file, ex);
          }
      }
docs: If a sql file is added/updated this can be called.
  @param file