fixed getPath for model in ResourceHandler
optimized getContextForChild in DataSource