if (currentParent instanceof Page) {
message.append(ClassUtils.getShortClassName(currentParent.getClass()));
} else if (currentParent instanceof Container) {
Container parentContainer = (Container) currentParent;
message.append(ClassUtils.getShortClassName(parentContainer.getClass()));
String parentId = parentContainer.getId();
if (parentId != null) {
message.append("[");
message.append(parentId);
message.append("]");
} else {
message.append("#");
message.append(parentContainer.hashCode());
}
}
message.append(" to ");
message.append(ClassUtils.getShortClassName(container.getClass()));