code: @Override
      public void onCopiedFrom(Item src) {
          super.onCopiedFrom(src);
  
          //noinspection unchecked
          TemplateDrivenMultiBranchProject<P, B> projectSrc = (TemplateDrivenMultiBranchProject<P, B>) src;
  
          /*
           * onLoad should have been invoked already, so there should be an
           * empty template.  Just update by XML and that's it.
           */
          try {
              template.updateByXml((Source) new StreamSource(projectSrc.getTemplate().getConfigFile().readRaw()));
          } catch (IOException e) {
              LOGGER.log(Level.WARNING, "Failed to copy template from " + src.getName() + " into " + getName(), e);
          }
      }
docs: If copied, also copy the {@link #template}.
  <br>
  {@inheritDoc}