I am building a Java Spring Boot application that manages a binary tree structure. Currently, data storage (MongoDB, PostgreSQL, and Memory) and the tree structure (Custom and Collections) are handled differently. For testing, I am changing the strategy by directly editing the pom.xml , but I need a method to handle this dynamically from the UI while the system is running.