Extended attributes for LOs. Refactoring to return extended attributes regarding the requested format (JSON, XLSX, ...)