//
Visibility visibility = Visibility.DISPLAYED;
Date startPublicationDate = null;
Date endPublicationDate = null;
if (navigation.isAdapted(Visible.class)) {
Visible visible = navigation.adapt(Visible.class);
visibility = visible.getVisibility();
startPublicationDate = visible.getStartPublicationDate();
endPublicationDate = visible.getEndPublicationDate();
}
//
PageKey pageRef = null;
Link link = navigation.getLink();