Let user extend EntityManager

change new EntityManager into new self in static function create