     }
     
     /**
-     Finds the first record for given attributes. Generic version.
-     
-     :param: attributes Dictionary of attribute names and values.
-     :param: predicateType If not specified, `.AndPredicateType` will be used.
-     :param: sortDescriptors Sort descriptors.
-     :param: context If not specified, `defaultContext` will be used.
-     
-     :returns: Optional instance of `Self`.
-     */
+        Finds the first record for given attributes. Generic version.
+
+        :param: attributes Dictionary of attribute names and values.
+        :param: predicateType If not specified, `.AndPredicateType` will be used.
+        :param: sortDescriptors Sort descriptors.
+        :param: context If not specified, `defaultContext` will be used.
+
+        :returns: Optional instance of `Self`.
+    */
     class func firstWithAttributes<T>(attributes: [NSObject : AnyObject], predicateType: NSCompoundPredicateType = defaultPredicateType, sortDescriptors: [NSSortDescriptor]? = nil, context: NSManagedObjectContext = AERecord.defaultContext) -> T? {
         let object: NSManagedObject? = firstWithAttributes(attributes, predicateType: predicateType, sortDescriptors: sortDescriptors, context: context)
         return object as? T

        return objects.first ?? nil
    }
    
    // MARK: Finding First
    
    /**
    Finds the first record. Generic version.
    
    :param: sortDescriptors Sort descriptors.
    :param: context If not specified, `defaultContext` will be used.
    
    :returns: Optional instance of `Self`.
    */
    class func first<T>(sortDescriptors sortDescriptors: [NSSortDescriptor]? = nil, context: NSManagedObjectContext = AERecord.defaultContext) -> T? {
        let object: NSManagedObject? = first(sortDescriptors: sortDescriptors, context: context)

    }
    
    /**
        Finds the first record for given predicate. Generic version

        :param: predicate Predicate.
        :param: sortDescriptors Sort descriptors.
        :param: context If not specified, `defaultContext` will be used.

        :returns: Optional instance of `Self`.
    */
    class func firstWithPredicate<T>(predicate: NSPredicate, sortDescriptors: [NSSortDescriptor]? = nil, context: NSManagedObjectContext = AERecord.defaultContext) -> T? {
        let object: NSManagedObject? = firstWithPredicate(predicate, sortDescriptors: sortDescriptors, context: context)
        return object as? T
