code: private void writeConnection(Definition def, Writer out, int indent) throws IOException
     {
        writeWithIndent(out, indent, "/** \n");
        writeWithIndent(out, indent, " * Get connection from factory\n");
        writeWithIndent(out, indent, " *\n");
        writeWithIndent(out, indent,
              " * @return " + def.getMcfDefs().get(getNumOfMcf()).getConnInterfaceClass() + " instance\n");
        writeWithIndent(out, indent, " * @exception ResourceException Thrown if a connection can't be obtained\n");
        writeWithIndent(out, indent, " */\n");
  
        writeWithIndent(out, indent, "public " + def.getMcfDefs().get(getNumOfMcf()).getConnInterfaceClass() +
              " getConnection() throws ResourceException;\n");
     }
docs: Output Connection method
  
  @param def    definition
  @param out    Writer
  @param indent space number
  @throws IOException ioException