try {
linkDescriptor(new Model<Class<Page>>(null), userModel).extract(parameters);
} catch (LinkParameterValidationException ignored) {
}
add(new Label("title", getTitleModel()));
<BUG>Component linkToPage1 = new LinkDescriptorBuilder().pageInstance(this).validate(LinksPage1.class).build()
</BUG>
.link("linkToThisPageInstanceOnlyIfPage1").hideIfInvalid();
add(linkToPage1);
<BUG>add(new LinkDescriptorBuilder().pageInstance(this).validate(LinksTemplate.class).build().link("linkToThisPageInstance")
</BUG>
.add(new PlaceholderBehavior().component(linkToPage1)));

try {
linkDescriptor(new Model<Class<Page>>(null), userModel).extract(parameters);
} catch (LinkParameterValidationException ignored) {
}
add(new Label("title", getTitleModel()));
Component linkToPage1 = LinkDescriptorBuilder.start(this).validate(LinksPage1.class).build()
.link("linkToThisPageInstanceOnlyIfPage1").hideIfInvalid();
add(linkToPage1);
add(LinkDescriptorBuilder.start(this).validate(LinksTemplate.class).build().link("linkToThisPageInstance")
.add(new PlaceholderBehavior().component(linkToPage1)));
