protected void genDuplicateMethod() {
private void genDuplicateMethod() {
    protected void genDuplicateMethod() {        String className = TypeGenerator.className(type);        println("  public shared.SharedObject duplicate() {");        println("    " + className + " clone = new " + className + "(factory);");        println("    clone.init(hashCode(), getAnnotations(), getFirst(), getNext());");        println("    return clone;");        println("  }");        println();    }