         private static let DirectoryKey = "directory"
         private static let VariablesFilenameKey = "variablesFilename"
     }
-}+}
+

        let settings = Settings(dictionary: settingsDictionary)
        var sources = NSBundle.mainBundle().pathsForResourcesOfType("css", inDirectory: settings.directory)
        
        sources.sortInPlace { (element, _) in
            if element.containsString(settings.variablesFilename) {
                return true
            } else {
                return false
            }
        }
        
        for sourceFilePath in sources {
            try loadStyleConfigurationsFromFile(sourceFilePath)
        }
    }
    
    public func loadStyleConfigurationsFromFile(filePath: String) throws {
        let configurations = try parser.parseFromFile(filePath)
        for (key, configuration) in configurations {
            styleConfigurations[key] = configuration
        }
    }
    

    private init() {}
    
    private let parser: PHCSSParserProtocol = PHCSSParser()
    private var styleConfigurations: [String: IPHStyleConfiguration] = [:]
    
}
