remove constructor and implement initializingbean for AntiDOSService to prevent NullPointerException on class injection, change config definition to prevent exception, add logging to AntiDOSService, add breaks to switch statement to prevent running all cases