code: protected GpsCoordinatesSource resolveGpsCoordinatesSource() {
          if(gpsCoordinatesSource == null) {
              Set<GpsCoordinatesSource> sources = getCamelContext().getRegistry().findByType(GpsCoordinatesSource.class);
              if(sources.size() == 1) {
                  GpsCoordinatesSource source = sources.iterator().next();
                  LOG.info("Found single instance of the GpsCoordinatesSource in the registry. {} will be used.", source);
                  return source;
              } else if(getComponent().getGpsCoordinatesSource() != null){
                  return getComponent().getGpsCoordinatesSource();
              } else {
                  return new SerialGpsCoordinatesSource();
              }
          } else {
              return gpsCoordinatesSource;
          }
      }
docs: Helpers