[JBRULES-3421] fix
(cherry picked from commit d9124c0cfe94918917f04fa43216239b821a6376)
SF-00809404 : updating type declarations, field accessors and OTNs in case of package classloader reload