AbstractEntity to simplify code