REST : refactored some exception management.
REST : Change temporary cache to use apache sis mechanism.