Source:
<code>public List<org.kie.server.controller.api.model.runtime.Container> getContainers(ServerInstanceKey serverInstanceKey) { List<org.kie.server.controller.api.model.runtime.Container> containers = new ArrayList<org.kie.server.controller.api.model.runtime.Container>(); if (serverInstanceKey == null || serverInstanceKey.getUrl() == null) { return containers; } try { KieServicesClient client = getClient(serverInstanceKey.getUrl()); ServiceResponse<KieContainerResourceList> response = client.listContainers(); if (response.getType().equals(ServiceResponse.ResponseType.SUCCESS)) { KieContainerResourceList resourceList = response.getResult(); for (KieContainerResource containerResource : resourceList.getContainers()) { Container container = new Container(); container.setContainerSpecId(containerResource.getContainerId()); container.setContainerName(containerResource.getContainerId()); container.setServerInstanceId(serverInstanceKey.getServerInstanceId()); <START> container.setUrl(serverInstanceKey.getUrl() + "/containers/" + containerResource.getContainerId()); <END> container.setResolvedReleasedId(containerResource.getResolvedReleaseId() == null ? containerResource.getReleaseId():containerResource.getResolvedReleaseId()); container.setServerTemplateId(serverInstanceKey.getServerTemplateId()); container.setStatus(containerResource.getStatus()); container.setMessages(containerResource.getMessages()); containers.add(container); } } } catch (Exception e) { logger.warn("Unable to get list of containers from remote server at url due to {}", serverInstanceKey.getUrl(), e.getMessage()); } return containers; }</code><technical_language>/containers/ is a constant</technical_language>

Target:
public List<Container> getContainers(ServerInstanceKey serverInstanceKey) { List<Container> containers = new ArrayList<org.kie.server.controller.api.model.runtime.Container>(); if (serverInstanceKey == null || serverInstanceKey.getUrl() == null) { return containers; } try { KieServicesClient client = getClient(serverInstanceKey.getUrl()); ServiceResponse<KieContainerResourceList> response = client.listContainers(); if (response.getType().equals(ServiceResponse.ResponseType.SUCCESS)) { KieContainerResourceList resourceList = response.getResult(); for (KieContainerResource containerResource : resourceList.getContainers()) { Container container = new Container(); container.setContainerSpecId(containerResource.getContainerId()); container.setContainerName(containerResource.getContainerId()); container.setServerInstanceId(serverInstanceKey.getServerInstanceId()); container.setUrl(serverInstanceKey.getUrl() + CONTAINERS_URI_PART + containerResource.getContainerId()); container.setResolvedReleasedId(containerResource.getResolvedReleaseId() == null ? containerResource.getReleaseId():containerResource.getResolvedReleaseId()); container.setServerTemplateId(serverInstanceKey.getServerTemplateId()); container.setStatus(containerResource.getStatus()); container.setMessages(containerResource.getMessages()); containers.add(container); } } } catch (Exception e) { logger.warn("Unable to get list of containers from remote server at url due to {}", serverInstanceKey.getUrl(), e.getMessage()); } return containers; }