package Ġcom . ly k ke . matching . engine . services . validators . settings . impl Ċ Ċ import Ġcom . ly k ke . matching . engine . da os . setting . Available Setting Group Ċ import Ġcom . ly k ke . matching . engine . services . validators . impl . ValidationException Ċ import Ġcom . ly k ke . matching . engine . services . validators . settings . Setting Validator Ċ import Ġcom . ly k ke . matching . engine . web . dto . Setting Dto Ċ import Ġorg . springframework . stereotype . Component Ċ Ċ @ Component Ċ class ĠMessage Processing Switch Setting Validator : ĠSetting Validator Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġval ĠSUPPORT ED _ VALUE Ġ= Ġ" stop " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġvalidate ( setting Dto : ĠSetting Dto ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( setting Dto . name Ġ!= ĠSUPPORT ED _ VALUE Ġ|| Ġsetting Dto . value Ġ!= ĠSUPPORT ED _ VALUE ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthrow ĠValidation Exception ( validation Message Ġ= Ġ" Not Ġacceptable Ġsetting Ġvalue / setting Ġname Ġwas Ġsupplied . ĠAccept able Ġsetting Ġvalue / name Ġis : Ġ'$ SUPPORTED _ VALUE '") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Setting Group (): ĠAvailable Setting Group Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠAvailable Setting Group . MESSAGE _ PROCESS ING _ SWITCH ĊĠĠĠ Ġ} Ċ }