class SleepPreventerFactory extends Factory<SleepPreventer> {

    public static SleepPreventer get() {
        if(!PreferencesFactory.get().getBoolean("queue.sleep.prevent")) {
            return new DisabledSleepPreventer();
        }
        return new SleepPreventerFactory().create();
    }

    protected  SleepPreventerFactory();

}