title: Extending RouteDefinition and RestDefinition in apache camel
body: <p>I wanted to add an extra method in camel <strong>RouteDefinition</strong> and <strong>RestDefinition</strong> for that I extended all the necessary classes and rewritten <strong>CustomRouteDefinition,CustomRestDefinition,CustomRoutesDefinition,CustomRestsDefinition and CustomRouteBuilder</strong> and  I have  overriden all the DSL methods.</p>
  
  <p>Now, I have migrated to Camel Version 2.16.0 which has new DSL methods implemented on it and I want to use these latest version because it has swagger java library in it.Do i need to again override/re-write these classes or is there anyway to avoid this?</p>
  
  <p>And What is the significance of the Method <strong><em>addRouteDefinition</em></strong> in CamelContext.Can it help me in anyway for solving the above issue?</p>