Source:
<code>protected void handlePublishUnpublish(String entryPath, String newName, boolean unpublishRequest) { if (unpublishRequest) { publish(false, entryPath); } else { if (newName == null) { publish(true, entryPath); } else { try { DockstoreTool container = containersApi.getContainerByToolPath(entryPath); DockstoreTool newContainer = new DockstoreTool(); newContainer.setMode(container.getMode()); newContainer.setName(container.getName()); newContainer.setNamespace(container.getNamespace()); newContainer.setRegistry(container.getRegistry()); newContainer.setDefaultDockerfilePath(container.getDefaultDockerfilePath()); newContainer.setDefaultCwlPath(container.getDefaultCwlPath()); newContainer.setDefaultWdlPath(container.getDefaultWdlPath()); newContainer.setDefaultCWLTestParameterFile(container.getDefaultCWLTestParameterFile()); newContainer.setDefaultWDLTestParameterFile(container.getDefaultWDLTestParameterFile()); newContainer.setIsPublished(false); newContainer.setGitUrl(container.getGitUrl()); newContainer.setToolname(newName); <START> newContainer.setCustomdockerregistrypath(container.getCustomdockerregistrypath()); <END> newContainer = containersApi.registerManual(newContainer); if (newContainer != null) { out("Successfully registered " + entryPath + "/" + newName); containersApi.refresh(newContainer.getId()); publish(true, newContainer.getToolPath()); } else { errorMessage("Unable to publish " + newName, Client.COMMAND_ERROR); } } catch (ApiException ex) { exceptionMessage(ex, "Unable to publish " + newName, Client.API_ERROR); } } } }</code><technical_language>capitalization odd this method</technical_language>

Target:
protected void handlePublishUnpublish(String entryPath, String newName, boolean unpublishRequest) { if (unpublishRequest) { publish(false, entryPath); } else { if (newName == null) { publish(true, entryPath); } else { try { DockstoreTool container = containersApi.getContainerByToolPath(entryPath); DockstoreTool newContainer = new DockstoreTool(); newContainer.setMode(container.getMode()); newContainer.setName(container.getName()); newContainer.setNamespace(container.getNamespace()); newContainer.setRegistry(container.getRegistry()); newContainer.setDefaultDockerfilePath(container.getDefaultDockerfilePath()); newContainer.setDefaultCwlPath(container.getDefaultCwlPath()); newContainer.setDefaultWdlPath(container.getDefaultWdlPath()); newContainer.setDefaultCWLTestParameterFile(container.getDefaultCWLTestParameterFile()); newContainer.setDefaultWDLTestParameterFile(container.getDefaultWDLTestParameterFile()); newContainer.setIsPublished(false); newContainer.setGitUrl(container.getGitUrl()); newContainer.setToolname(newName); newContainer.setCustomDockerRegistryPath(container.getCustomDockerRegistryPath()); newContainer = containersApi.registerManual(newContainer); if (newContainer != null) { out("Successfully registered " + entryPath + "/" + newName); containersApi.refresh(newContainer.getId()); publish(true, newContainer.getToolPath()); } else { errorMessage("Unable to publish " + newName, Client.COMMAND_ERROR); } } catch (ApiException ex) { exceptionMessage(ex, "Unable to publish " + newName, Client.API_ERROR); } } } }