/** * Finds an activator that handles the component implementation type. * @throws SwitchYardException if the component definition does not contain * an implementation type */ private Activator findActivator(ComponentModel component) throws SwitchYardException { if (component.getImplementation() == null) { throw BaseDeployMessages.MESSAGES.componentDefNoImpl(component.getName()); } return findActivator(component.getImplementation().getType()); }