code: public static Janitor createJanitor(String type)
     {
        if (type == null || type.equals(""))
           return new MinimalJanitor();
  
        type = type.toLowerCase(Locale.US);
        
        switch (type)
        {
           case "minimal":
              return new MinimalJanitor();
           case "full":
              return new FullJanitor();
           default:
           {
              return new MinimalJanitor();
           }
        }
     }
docs: Create a janitor
  @param type The type
  @return The janitor