code: private void writeMetaData(Definition def, Writer out, int indent) throws IOException
     {
        writeWithIndent(out, indent, "/**\n");
        writeWithIndent(out, indent, " * Gets metadata for the Resource Adapter. \n");
        writeWithIndent(out, indent, " *\n");
        writeWithIndent(out, indent, " * @return ResourceAdapterMetaData instance\n");
        writeWithIndent(out, indent, " * @throws ResourceException Failed to get metadata information \n");
        writeWithIndent(out, indent, " */\n");
  
        writeWithIndent(out, indent, "@Override\n");
        writeWithIndent(out, indent, "public ResourceAdapterMetaData getMetaData() throws ResourceException");
        writeLeftCurlyBracket(out, indent);
  
        writeIndent(out, indent + 1);
        if (def.isUseRa())
        {
           out.write("return new " + def.getRaMetaClass() + "();");
        }
        else
        {
           out.write("return null;");
        }
        writeRightCurlyBracket(out, indent);
        writeEol(out);
     }
docs: Output MetaData method
  
  @param def    definition
  @param out    Writer
  @param indent space number
  @throws IOException ioException