repository entities compiletime fix.
statistics (to be removed later).
improving add/modify operations with entity state interceptor implementation.