                     let parameter = path.substring(from: range.upperBound).replacingOccurrences(of: "}", with: "")
                     print("🍎", parameter)
                     
-                    
-                    let pathesName = generatePathComponent(pathName: str, tagName: tag).enumerated().map({ (offset, elem) -> String in
+                    let pathesComponent = generatePathComponent(pathName: str, tagName: tag)
+                    
+                    let pathesName = pathesComponent.enumerated().map({ (offset, elem) -> String in
                         if offset == 0 {
                             return elem
                         }

            print("😄😄", tag)
            
            let tagFileName = "\(tag)ServiceImpl.swift"
            var tagPath = "//\n"
            tagPath += "// \(tag)ServiceImpl.swift\n"
            tagPath += "//\n"
            tagPath += "// Create by JSONConverter\n"
            tagPath += "//\n\n\n"
            tagPath += "// \(tag)\n"
            tagPath += "extension Path {\n"
            

                        print(structObjectCode)
                        print("🍎----------------------------🍎")
                        
                        /* TO OPEN
                        try? structObjectCode.write(toFile: "/Users/Binglin/Documents/MyselfProjects/JSONFactory/CodeFactory/Entity/\(entityName).swift", atomically: true, encoding: String.Encoding.utf8)
                        */
                    }
                    
                }
