return Path.getComponent(self.getSpaceOwner(), path);
} else {
return self.getAttribute(path, false);
}
} else { //handling event
final Scope scope = Scopes.getCurrent(page);
if (scope != null) {
final Component xself = (Component) scope.getAttribute("self", true);
if (Components.isImplicit(getBeanName())) {
return Components.getImplicit(xself, getBeanName());
}
if (path == null) {
//sometimes, Spring can instantiate partially, the bean name might be null
if (getBeanName() != null) {
return scope.getAttribute(getBeanName(), true);
}
} else if (path.startsWith(".")) { //relative path
return Path.getComponent(xself.getSpaceOwner(), path);
} else {
return scope.getAttribute(path, true);
}
}
}
}
}