Add more context to constructResource for extension