throw new IllegalArgumentException("This encoder can only be used with " +
"instances of " + IBookmarkablePageRequestTarget.class.getName());
}
final AppendingStringBuffer url = new AppendingStringBuffer(40);
url.append(getMountPath());
final IBookmarkablePageRequestTarget target = (IBookmarkablePageRequestTarget)requestTarget;
PageParameters pageParameters = target.getPageParameters();
String pagemap = pageMapName != null ? pageMapName : target.getPageMapName();
if (pagemap != null)
{
if (pageParameters == null)
{
pageParameters = new PageParameters();