code: private void writeMethod(Definition def, Writer out, int indent) throws IOException
     {
        if (def.getMcfDefs().get(getNumOfMcf()).isDefineMethodInConnection())
        {
           if (def.getMcfDefs().get(getNumOfMcf()).getMethods().size() > 0)
           {
              for (MethodForConnection method : def.getMcfDefs().get(getNumOfMcf()).getMethods())
              {
                 writeMethodSignature(out, indent, method);
                 writeLeftCurlyBracket(out, indent);
                 writeLogging(def, out, indent + 1, "trace", method.getMethodName());
  
                 if (!method.getReturnType().equals("void"))
                 {
                    writeEol(out);
                    if (BasicType.isPrimitiveType(method.getReturnType()))
                    {
                       writeWithIndent(out, indent + 1, "return " + BasicType.defaultValue(method.getReturnType()) + ";");
                    }
                    else
                    {
                       writeWithIndent(out, indent + 1, "return null;");
                    }
                 }
  
                 writeRightCurlyBracket(out, indent);
              }
           }
        }
        else
        {
           writeSimpleMethodSignature(out, indent, " * Call me", "void callMe()");
           writeLeftCurlyBracket(out, indent);
           writeLogging(def, out, indent + 1, "trace", "callMe");
           writeRightCurlyBracket(out, indent);
        }
     }
docs: Output methods
  
  @param def    definition
  @param out    Writer
  @param indent space number
  @throws IOException ioException