protected < T extends HistoryEvent > T findInCache ( Class < T > type , String id ) { return Context . getCommandContext ( ) . getDbEntityManager ( ) . getCachedEntity ( type , id ) ; }
find a cached entity by primary key