code: protected void writeMethodSignature(Writer out, int indent, MethodForConnection method) throws IOException
     {
        writeWithIndent(out, indent, "/**\n");
        writeWithIndent(out, indent, " * " + method.getMethodName());
        writeEol(out);
        for (MethodParam param : method.getParams())
        {
           writeIndent(out, indent);
           out.write(" * @param " + param.getName() + " " + param.getName());
           writeEol(out);
        }
        if (!method.getReturnType().equals("void"))
        {
           writeIndent(out, indent);
           out.write(" * @return " + method.getReturnType());
           writeEol(out);
        }
        for (String ex : method.getExceptionType())
        {
           writeIndent(out, indent);
           out.write(" * @throws " + ex + " " + ex);
           writeEol(out);
        }
  
        writeWithIndent(out, indent, " */\n");
  
        writeWithIndent(out, indent, "public " + method.getReturnType() + " " +
              method.getMethodName() + "(");
        int paramSize = method.getParams().size();
        for (int i = 0; i < paramSize; i++)
        {
           MethodParam param = method.getParams().get(i);
           out.write(param.getType());
           out.write(" ");
           out.write(param.getName());
           if (i + 1 < paramSize)
              out.write(", ");
        }
        out.write(")");
        int exceptionSize = method.getExceptionType().size();
        for (int i = 0; i < exceptionSize; i++)
        {
           if (i == 0)
              out.write(" throws ");
           String ex = method.getExceptionType().get(i);
           out.write(ex);
           if (i + 1 < exceptionSize)
              out.write(", ");
        }
     }
docs: Write method signature for given @MethodForConnection
  @param out the writer
  @param indent indent
  @param method method metadata
  @throws IOException exception