Adding a better and cleaner solution for those who are having this issue. wcm.io provides libraries and extension for AEM applications. We can use the same to create AemContext. They have recently addresses this issue and added straightforward solution (issue link), details here. We can import com....