Implement support for overriding layout from ResourceMapper.