public Constructor copyConstructor(Type type, CopyConstructorMode mode) {
        final TranslatorSupport<D> support = getSupport();
        final Constructor constructor = Constructor.of().protected_()
            .add(Field.of(support.variableName(), type));

        columns().forEachOrdered(c -> {
            switch (mode) {
                case FIELD:
                    defineField(support, constructor, c);
                    break;
                case SETTER:
                    addSetter(support, constructor, c);
                    break;
                default:
                    throw new UnsupportedOperationException(
                        "Unknown mode '" + mode + "'."
                    );
            }
        });

        return constructor;
    }
This method is executed after the file has been created but before it is
returned to the code generator.

@param file the file to operate on
generator-parent/generator-translator/src/main/java/com/speedment/generator/translator/AbstractJavaClassTranslator.java