added function getApp in BaseModel so that HasTranslation may work