refactor appName in appId
fix on null entityId
added getOwner and minor refactors
multiple fixes