Adopt proper logging approach. Removed printStackTrace and sysouts.
Also fixed service template to return specific entity for addEntity method instead of generic entity.