https://github.com/alchemy-fr/Phraseanet/pull/281/files#L2R41