private List<LinkObject> getPath(Space space) {
List<LinkObject> result = new ArrayList<LinkObject>();
if (space != null) {
List<Space> spaceFullPath = SpaceUtils.getSpaceFullPath(space);
for (Space surroundingSpace : spaceFullPath) {
result.add(new LinkObject(surroundingSpace.getExternalId(), "viewSpace", surroundingSpace.getName()));
}
}
return result;
}