title: Best way to define restConfiguration() with multiple rest dsl route builders in Apache Camel
body: <p>I am relatively new to camel and I'm looking for a good way to define multiple route builders using the REST DSL component in camel while using one restConfiguration() definition as this should remain the same across all route builders. </p>
  
  <p>I found this question (<a href="https://stackoverflow.com/questions/57573864/connecting-multiple-camel-routes-in-rest-dsl">Connecting multiple Camel Routes in REST DSL</a>) in which someone linked to a base class defining restConfiguration() which will be automatically called by child classes (<a href="https://github.com/RovoMe/camel-rest-dsl-with-spring-security/blob/master/src/main/java/at/rovo/awsxray/routes/api/BaseAPIRouteBuilder.java" rel="nofollow noreferrer">https://github.com/RovoMe/camel-rest-dsl-with-spring-security/blob/master/src/main/java/at/rovo/awsxray/routes/api/BaseAPIRouteBuilder.java</a>) which is desirable as we only want to define the restConfiguration if there is a rest consumer route defined,  but this would mean the restConfiguration is called multiple times (for each child); is this the best solution? </p>
  
  <p>Thanks for your time!</p>