def METHOD_NAME(stream, class_name, package, rest_version):
    print(HDR_INFO)
    print("package " + package + ";\n", file=stream)
    print("import java.util.List;", file=stream)
    print("import java.util.Map;", file=stream)
    print("import java.util.Collections;", file=stream)
    print(file=stream)
    print("import com.fasterxml.jackson.annotation.JsonInclude;\n", file=stream)
    print("public class " + class_name + "\n{", file=stream)
    print('    public static final String REST_API_VERSION = "{v}";\n'.format(v=rest_version))