clean code, use genericity
[STUDIO-2676]don't call an element inside the bundle if the element was
already cached
Merge branch 'CoreProduct' of https://github.com/bonitasoft/bonita-studio into CoreProduct