Returns the target Controller that was set with the {@link #setTargetController(Controller)}
method or {@code null} if this Controller has no target.

@return This Controller's target
161922
@Nullable
    public final Controller getTargetController() {
        if (targetInstanceId != null) {
            return router.getRootRouter().getControllerWithInstanceId(targetInstanceId);
        }
        return null;
    }
1072893
@Nullable
    final Controller findController(@NonNull String instanceId) {
        if (this.instanceId.equals(instanceId)) {
            return this;
        }

        for (Router router : childRouters) {
            Controller matchingChild = router.getControllerWithInstanceId(instanceId);
            if (matchingChild != null) {
                return matchingChild;
            }
        }
        return null;
    }
135338
public static String getTargetUrl() {
		String targetUrl = System.getenv(ENV_API_URL_KEY);
		if (targetUrl != null) {
			return targetUrl;
		} else {
			targetUrl = apiUrl;
		}
		return targetUrl;
	}
1217798
public String getController() {
        final StringBuilder controller = new StringBuilder();
        if (getProtocol() != null) {
            controller.append(getProtocol()).append("://");
        }
        if (getHost() != null) {
            controller.append(getHost());
        } else {
            controller.append("localhost");
        }
        if (getPort() > 0) {
            controller.append(':').append(getPort());
        }
        return controller.toString();
    }
734398
private function getController()
    {
        if (empty($this->controllerName)) {
            return null;
        }

        if (isset($this->controller)) {
            return $this->controller;
        }

        $this->controller = $this->createControllerFromClassName($this->controllerName);

        return $this->controller;
    }
1352860
public String getTargetSite() {
		try {
			String urlstr = wbRequest.getRequestUrl();
			if (urlstr == null) return null;
			URL url = new URL(urlstr);
			return url.getHost();
		} catch (MalformedURLException ex) {
			return null;
		}
	}
549216
public Controller getController(JsonPath jsonPath, String method) {
		for (Controller controller : controllers) {
			if (controller.isAcceptable(jsonPath, method)) {
				LOGGER.debug("using controller {}", controller);
				return controller;
			}
		}
		throw new BadRequestException(jsonPath + " with method " + method);
	}
1013159
public MapController getMapController() {
		final GraphicsController controller = mapWidget.getController();
		MapController mapController = new MapController(this, controller);
		mapController.setActivationHandler(new ExportableFunction() {

			public void execute() {
				controller.onActivate();
			}
		});
		mapController.setDeactivationHandler(new ExportableFunction() {

			public void execute() {
				controller.onDeactivate();
			}
		});
		return mapController;
	}
556629
private function getController()
        {
            $expected = $this->request['resource'];
            foreach(glob(APPLICATION_PATH . '/Controllers/*.php', GLOB_NOSORT) as $controller) {
                $controller = basename($controller, '.php');
                if(strnatcasecmp($expected, $controller) == 0) {
                    return 'Controllers_' . $controller;
                }
            }
            return null;
        }
958853
public java.util.List<TargetReservationValue> getTargetConfigurationValueSet() {
        if (targetConfigurationValueSet == null) {
            targetConfigurationValueSet = new com.amazonaws.internal.SdkInternalList<TargetReservationValue>();
        }
        return targetConfigurationValueSet;
    }
1158007
public int getBranchTarget()
  {
    switch (getOpcode()) {
    case IFNULL:
    case IFNONNULL:
    case IFNE:
    case IFEQ:
    case IFLT:
    case IFGE:
    case IFGT:
    case IFLE:
    case IF_ICMPEQ:
    case IF_ICMPNE:
    case IF_ICMPLT:
    case IF_ICMPLE:
    case IF_ICMPGE:
    case IF_ICMPGT:
    case IF_ACMPEQ:
    case IF_ACMPNE:
    case GOTO:
    case JSR:
      return _offset + getShortArg();
      
    case GOTO_W:
    case JSR_W:
      return _offset + getIntArg();

    default:
      throw new UnsupportedOperationException();
    }
  }
1051563
public TargetStreamControl getControlAdapter()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getControlAdapter");

    TargetStreamControl targetStreamControl = 
        new TargetStreamControl(remoteEngineUUID, this, streamSetUUID, 
        getReliability(), getPriority());
        
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getControlAdapter", targetStreamControl);
    return targetStreamControl;    
  }
74116
protected AuroraController getController()
      throws ClassNotFoundException, InstantiationException, IllegalAccessException {
    Boolean cliController = config.getBooleanValue(Key.AURORA_CONTROLLER_CLASS);
    Config localConfig = Config.toLocalMode(this.config);
    if (cliController) {
      return new AuroraCLIController(
          Runtime.topologyName(runtime),
          Context.cluster(localConfig),
          Context.role(localConfig),
          Context.environ(localConfig),
          AuroraContext.getHeronAuroraPath(localConfig),
          Context.verbose(localConfig));
    } else {
      return new AuroraHeronShellController(
          Runtime.topologyName(runtime),
          Context.cluster(localConfig),
          Context.role(localConfig),
          Context.environ(localConfig),
          AuroraContext.getHeronAuroraPath(localConfig),
          Context.verbose(localConfig),
          localConfig);
    }
  }
575120
public function getCTATarget()
    {
        if (!($this->nb_site_target_destination instanceof CNabuSiteTarget) &&
            $this->getTargetUseURI() === CNabuSiteTargetLink::USE_URI_TRANSLATED &&
            is_numeric($this->getTargetId())
        ) {
            $this->nb_site_target_destination = $this->nb_site_target->getSite()->getTarget($this->getTargetId());
        }

        return $this->nb_site_target_destination;
    }
872435
public java.util.List<TargetLocation> getTargetLocations() {
        if (targetLocations == null) {
            targetLocations = new com.amazonaws.internal.SdkInternalList<TargetLocation>();
        }
        return targetLocations;
    }
1187933
protected function _getController()
    {
        if (!$this->_controller instanceof KControllerInterface) {
            $this->_controller = $this->getObject($this->_controller);
        }

        return $this->_controller;
    }
527197
public String getTargetQueue()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "getTargetQueue");
      SibTr.exit(tc, "getTargetQueue", targetQueue);
    }
    return targetQueue;
  }