fixed creating factories, registered listeners while creating proxy with getCache
fixes #4215
checkstyle fix
Merge pull request #4216 from gurbuzali/jcache-declarative-listener-fix

fixed creating factories, registered listeners while creating proxy with getCache