docs: public void convertAndWriteXML(String xml, String path)
      {
          ClassProject classProject = (ClassProject)this.getMainRecord();
          Record recProgramControl = this.getRecord(ProgramControl.PROGRAM_CONTROL_FILE);
          
          Model model = (Model)this.unmarshalMessage(xml);
          String name = model.getName();
          
          CodeType codeType = CodeType.THICK;
          String thickDir = classProject.getFileName("", null, codeType, true, false);
          if (name == null)
              codeType = CodeType.THICK;
          else if (name.endsWith("model"))
              codeType = CodeType.INTERFACE;
          else if (name.endsWith("thin"))
              codeType = CodeType.THIN;
          else if (name.endsWith("res"))
              codeType = CodeType.RESOURCE_PROPERTIES;
          xml = replaceParams(xml, codeType);
          model = (Model)this.unmarshalMessage(xml);
          String strSourcePath = recProgramControl.getField(ProgramControl.CLASS_DIRECTORY).toString();
          String destDir = classProject.getFileName("", null, codeType, true, false);
          if (codeType != CodeType.THICK)
              if (destDir.equals(thickDir))
                  return; // Can't be the same as thick dir
          if (destDir.endsWith(strSourcePath))
              destDir = destDir.substring(0, destDir.length() - strSourcePath.length());
          if (name != null)
              if (name.endsWith("reactor"))
              {
                  if (destDir.endsWith("/"))
                      destDir = destDir.substring(0, destDir.length() - 1);
                  if (destDir.lastIndexOf('/') != -1)
                      destDir = destDir.substring(0, destDir.lastIndexOf('/'));
              }
          path = "pom.xml";
          path = org.jbundle.base.model.Utility.addToPath(destDir, path);
          File fileOut = new File(path);
          File fileDir = fileOut.getParentFile();
          if (!fileDir.exists())
              fileDir.mkdirs();
          
          //xml = this.marshalObject(model);  // Later
          Reader in = new StringReader(xml);
          
          org.jbundle.base.model.Utility.transferURLStream(null, path, in, null);
      }