clean up code, throws an exception if translation entity does not extend either AbstractTranslation or AbstractPersonalTranslation