I have a requirement where i need to switch spring beans at runtime. I am thinking of using @ConditionalOnProperty to achieve that but i also need to create a rest endpoint