Don't use the repository structure as your primary abstraction!
summary
Claim: stop hard-coding JCR paths and build domain adapters instead. The talk shows a concrete pattern: implement a Site class and other domain interfaces adapted from resources (using adaptTo or a model factory), move contact-address and language lookup logic into those adapters, centralize null handling and defaults, and eliminate scattered path string concatenation. Result: far fewer NullPointerExceptions, one place to change when repository layout shifts, and much easier content + code refactoring—no demo numbers but clear reduction of boilerplate. avoid string paths
AI-written summary · about
