nested EntityImpl inside Entity