Fix CacheManager NullPointer Exception

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

Correlation with MySQL / JPA MetaModel
Merge pull request #174 from GJRTimmer/master

Fix CacheManager NullPointer Exception