Implement support for changing resource layout on the fly in resource mapper.