code: void generateRaXml(Definition def, String outputDir)
     {
        if (!def.isUseAnnotation())
        {
           try
           {
              outputDir = outputDir + File.separatorChar + "src" + File.separatorChar +
                    "main" + File.separatorChar + "resources";
              FileWriter rafw = Utils.createFile("ra.xml", outputDir + File.separatorChar + "META-INF");
              RaXmlGen raGen = getRaXmlGen(def);
              raGen.generate(def, rafw);
              rafw.close();
           }
           catch (IOException ioe)
           {
              ioe.printStackTrace();
           }
        }
     }
docs: generate ra.xml
  
  @param def       Definition
  @param outputDir output directory