public function beanToArray(array $fields_name, \SugarBean $bean, $pretty = false, $lang = 'en_us')
    {
        $module_definition = null;
        if ($pretty) {
            $module_definition = $this->getModuleFields($bean->module_name, $lang);
        }
        $fields = array();
        foreach ($fields_name as $field_name) {
            $key = $field_name;
            $value = $bean->$field_name;
            if (!is_null($module_definition)) {
                list($key, $value) = $this->applyLabelsToField($module_definition, $key, $value);
            }
            $fields[$key] = $value;
        }
        return $fields;
    }