REST: fix resource mappings 3-level deep