                     inScene = false
                 case "objects" where inScene:
                     readyForFirstObject = false
+                case "connections":
+                    readyForConnections = false
                 default:
                     break;
                 }

        
        class ParserDelegate : NSObject, NSXMLParserDelegate {
            var scenes = [Scene]()
            var inScene = false
            var readyForFirstObject = false
            
            @objc func parser(parser: NSXMLParser, didStartElement elementName: String,
                namespaceURI: String?, qualifiedName qName: String?,
                attributes attributeDict: [String : String])
            {
                
                switch elementName {
                case "scene":
                    inScene = true
                case "objects" where inScene:
                    readyForFirstObject = true
                case _ where readyForFirstObject:
                    if let storyboardID = attributeDict["storyboardIdentifier"] {
                        let customClass = attributeDict["customClass"]
                        scenes.append(Scene(storyboardID, customClass))
                    }
                    readyForFirstObject = false
                default:
                    break
                }
            }
            
            @objc func parser(parser: NSXMLParser, didEndElement elementName: String,
                namespaceURI: String?, qualifiedName qName: String?)
            {


public final class SwiftGenStoryboardEnumBuilder {
    private typealias Scene = (storyboardID: String, customClass: String?)
    private var storyboardsScenes = [String : [Scene]]()
    private var storyboardsSegues = [String: [Scene]]()

    
    public init() {}
