Fix CacheManager NullPointer Exception

CacheManager throws NullPointer exception when adding a new entity to
the application.

Correlation with MySQL / JPA MetaModel