I am implementing AfterSaveListener, where I perform some actions on StockLevelModel change. The problem occurs when I try to call ProductService method getProductForCode. Service call looks like this:
Unfortunately service returns error: could not translate value expression 'session.catalogversions'
As I understand it can't find catalog version in the session. I can not set catalog version manually, because I don't know from which catalog this product code comes from.
Are there any thoughts how I can get product within AfterSaveListener?