if (path == null || path.isEmpty()) {
return null;
}
// get directly page by path
Node node = _nodeDao.getByPath(path, Node.class);
if (!(node instanceof Page)) {
// the path is site or section, get default page of it
node = _nodeDao.getDefaultPage(path);
if (node == null) {
// no default page, get the first page