code: public void updateByXml(final InputStream source) throws IOException, ServletException {
          checkPermission(CONFIGURE);
          Node result = (Node)Jenkins.XSTREAM2.fromXML(source);
          Jenkins.getInstance().getNodesObject().replaceNode(this.getNode(), result);
      }
docs: Updates Job by its XML definition.
  
  @since 1.526