package router.client.location;

import java.util.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

public final class LocationDefinition
{
  @Nonnull
  private final LocationPattern _pattern;
  @Nullable
  private final LocationGuardCallback _locationGuard;

  public LocationDefinition( @Nonnull final LocationPattern pattern,
                             @Nullable final LocationGuardCallback locationGuard )
  {
    _pattern = Objects.requireNonNull( pattern );
    _locationGuard = locationGuard;
  }

  @Nonnull
  public LocationPattern getPattern()
  {
    return _pattern;
  }

  @Nullable
  public LocationGuardCallback getLocationGuard()
  {
    return _locationGuard;
  }
}

@@ -280,16 +280,122 @@
 Guard;%0A%0A
+  public LocationDefinition( @Nonnull final LocationPattern pattern )%0A  %7B%0A    this( pattern, null );%0A  %7D%0A%0A
   public

Add simplified constructor