/// <summary>Register the package if required.</summary>
 public void Register()
 {
     if (Id == null)
     {
         PackageDetails package = store.RegisterAndValidatePackage(reader);
         Id = package.PackageId;
     }
 }