@Override
protected CamelContext createCamelContext() throws Exception {
final String keyStorePassword = "keystorePassword";
final String trustStorePassword = "truststorePassword";
SimpleRegistry registry = new SimpleRegistry();
KeyStore keyStore = KeyStore.getInstance("JKS"); // Java keystore
ClassLoader classLoader = getClass().getClassLoader();
log.info("Loading keystore from [{}]", classLoader.getResource("keystore.jks").toString());
keyStore.load(classLoader.getResourceAsStream("keystore.jks"), keyStorePassword.toCharArray());
registry.put("keyStore", keyStore);
KeyStore trustStore = KeyStore.getInstance("JKS"); // Java keystore
trustStore.load(classLoader.getResourceAsStream("truststore.jks"), trustStorePassword.toCharArray());
registry.put("trustStore", trustStore);
return new DefaultCamelContext(registry);
}