protected function getMappableFieldsForClass($class)
    {
        $singleton = singleton($class);
        $fields = (array)$singleton->fieldLabels(false);
        foreach ($fields as $field => $label) {
            if (!$singleton->hasField($field)) {
                unset($fields[$field]);
            }
        }
        return $fields;
    }