package de.fred4jupiter.plaincamel;

import org.apache.camel.CamelContext;
import org.apache.camel.main.Main;

/**
 * Created by michael on 12.09.2017.
 */
public class Application extends org.apache.camel.main.Main {

	public Application() throws Exception {
		super();
		getOrCreateCamelContext().addRoutes(new MyRouteBuilder());
	}

	@Override
	protected CamelContext createContext() {
		CamelContext camelContext = CamelContextCreator.createCamelContext();
		return camelContext;
	}

	public static void main(String[] args) throws Exception {

		Application application = new Application();
		application.run();

	}
}

@@ -186,38 +186,16 @@
 nds 
-org.apache.camel.main.
 Main %7B%0A%0A
 %09pub
@@ -190,17 +190,20 @@
 Main %7B%0A%0A
-%09
+    
 public A
@@ -234,18 +234,24 @@
 ption %7B%0A
-%09%09
+        
 super();
@@ -251,18 +251,24 @@
 uper();%0A
-%09%09
+        
 getOrCre
@@ -318,21 +318,27 @@
 der());%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 @Overrid
@@ -339,17 +339,20 @@
 verride%0A
-%09
+    
 protecte
@@ -384,18 +384,24 @@
 ext() %7B%0A
-%09%09
+        
 CamelCon
@@ -462,18 +462,24 @@
 text();%0A
-%09%09
+        
 return c
@@ -495,13 +495,19 @@
 xt;%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 publ
@@ -560,19 +560,24 @@
 ption %7B%0A
-%0A%09%09
+        
 Applicat
@@ -617,10 +617,16 @@
 ();%0A
-%09%09
+        
 appl
@@ -644,10 +644,12 @@
 ();%0A
-%0A%09
+    
 %7D%0A%7D%0A

Use org.apache.camel.main.Main for sample application