public static void setLogger(Logger logger) {
    if (logger == null) throw new IllegalArgumentException("logger cannot be null");

    instance.logger = logger;
  }
 public static void load(Logger logger) {
   instance.logger = logger;
   instance.doLoad();
 }