String altClassName = className(alt);
String altClassName = className(type,alt);
    private void genAltDuplicateMethod(Type type, Alternative alt) {        GenerationParameters params = getGenerationParameters();        String altClassName = className(alt);        println("  public shared.SharedObject duplicate() {");        String getFactoryMethodName = AbstractTypeGenerator.getFactoryMethodName(params,type.getModuleName());        println(            "    "                + altClassName                + " clone = new "                + altClassName                + "("                + getFactoryMethodName                + "());");        println(            "    clone.init(hashCode(), getAnnotations(), getAFun(), "                + "getArgumentArray());");        println("    return clone;");        println("  }");        println();    }