                             failure(myError)
                             return
                         }
-                    
+                        
                         if data != nil {
                             var responseObject: AnyObject? = self.responseSerializer.response(data)
                             success(responseObject)

    
    public func GET(parameters: [String: AnyObject]? = nil, success:((AnyObject?) -> Void)!, failure:((NSError) -> Void)!) {
        if let unwrappedURL = baseURL {
            self.call(unwrappedURL, method: .GET, parameters: parameters, headers: self.authzModule?.authorizationFields(), success, failure)
        }
    }
    
    public func POST(parameters: [String: AnyObject]? = nil, success:((AnyObject?) -> Void)!, failure:((NSError) -> Void)!) {
        if let unwrappedURL = baseURL {
            self.call(unwrappedURL, method: .POST, parameters: parameters, headers: self.authzModule?.authorizationFields(), success, failure)
        }
    }
    
    public func PUT(parameters: [String: AnyObject]? = nil, success:((AnyObject?) -> Void)!, failure:((NSError) -> Void)!) {
        if let unwrappedURL = baseURL {
            self.call(unwrappedURL, method: .PUT, parameters: parameters, headers: self.authzModule?.authorizationFields(), success, failure)
        }
    }
    
    public func DELETE(parameters: [String: AnyObject]? = nil, success:((AnyObject?) -> Void)!, failure:((NSError) -> Void)!) {
        if let unwrappedURL = baseURL {
            self.call(unwrappedURL, method: .DELETE, parameters: parameters, headers: self.authzModule?.authorizationFields(), success, failure)
        }
    }
    
    public func HEAD(parameters: [String: AnyObject]? = nil, success:((AnyObject?) -> Void)!, failure:((NSError) -> Void)!) {
        if let unwrappedURL = baseURL {
            self.call(unwrappedURL, method: .HEAD, parameters: parameters, headers: self.authzModule?.authorizationFields(), success, failure)
        }
    }
    

        self.responseSerializer = responseSerializer
    }
    
    func call(url: NSURL, method: HttpMethod, parameters: Dictionary<String, AnyObject>?, success:((AnyObject?) -> Void)!, failure:((NSError) -> Void)!) -> Void {
        
        let serializedRequest = requestSerializer.request(url, method: method, parameters: parameters, headers: self.authzModule?.authorizationFields())
        
        if (serializedRequest != nil) {
            let task = session.dataTaskWithRequest(serializedRequest!,
