I have a Spring Boot App, that has a feature, which has to be disabled for one distribution, but enabled for another. I've looked into Maven profiles, but didn't get the feeling, that it was the right way to approach this problem.
Is there a way to check during the runtime

```
if (featureActive) {
  // execute some code
}

```

Any ideas on what tool to use to get it done?