code: protected Endpoint resolveEndpointName(String endpointName) {
          try {
              return beanFactory.getBean(endpointName, Endpoint.class);
          } catch (BeansException e) {
              throw new CitrusRuntimeException(String.format("Unable to resolve endpoint for name '%s'", endpointName), e);
          }
      }
docs: Resolve the endpoint by name.
  @param endpointName the name to resolve
  @return the Endpoint object