Modified the appNamespace method in Model