IVAPP-1501: IVAPP-5042: Fixing Class Cast Exception caused by the previous fix

@ptdang 
I think this is needed.  I followed the file history and the versions were upgraded every time the main version was upgraded.