// Top-level component definition
ComponentModel componentModel = new V1ComponentModel();
componentModel.setName(routeClass.getSimpleName());
// Component implementation definition
CamelComponentImplementationModel camelModel = new V1CamelImplementationModel(camelNamespace.uri());
camelModel.setJavaClass(routeClass.getName());
componentModel.setImplementation(camelModel);
compositeModel.addComponent(componentModel);
// Component service definition
ComponentServiceModel serviceModel = new V1ComponentServiceModel(switchyardNamespace.uri());