public Model getModel() {
if (this.model != null) {
return this.model;
}
synchronized (this) {
ModelImpl model = (ModelImpl) getRequest().getAttribute("$$paoding-rose.model");
if (model == null || model.getInvocation() != this) {
ModelImpl parent = model;
model = new ModelImpl(this);
if (parent != null && requestPath.isForwardRequest()) {
model.merge(parent.getAttributes());
}
getRequest().setAttribute("$$paoding-rose.model", model);
}
this.model = model;
}