anchor.diff:  <% if entity.extends -%>
       super.performDelink();
   <% else -%>
  -    org.realityforge.braincheck.Guards.invariant( () -> _$delinking,
  -                                                  () -> "performDelink invoked from outside delink" );
  +    if ( org.realityforge.braincheck.BrainCheckConfig.checkInvariants() )
  +    {
  +      org.realityforge.braincheck.Guards.invariant( () -> _$delinking,
  +                                                    () -> "performDelink invoked from outside delink" );
  +    }
   <% end -%>
   <% linkable_attributes.each do |attribute| -%>
       delink<%= attribute.arez.name %>();
  
positive.code:     throws Exception
    {
      checkValidity();
      org.realityforge.braincheck.Guards.invariant( () -> _entityLocator.findByID( <%= entity.arez.name %>.class, <%= getter_prefix(entity.primary_key) %><%= entity.primary_key.name %>() ) == this,
                                                    () -> "Registered entity does not match current entity. Current Entity: " + this );
  <% entity.declared_attributes.select{ |a| a.arez? && (a.reference? && a.remote_reference?) && a.inverse.traversable? }.each do |attribute| -%>
      if( null != _<%= Reality::Naming.camelize(attribute.arez.name) %> )
      {
        _<%= Reality::Naming.camelize(attribute.arez.name) %>.verifySelf();
      }
  <% end -%>
    }
  
    @java.lang.SuppressWarnings( { "PMD.UselessOverridingMethod" } )
  
negative.code: <% if entity.extends -%>
      super.performLink();
  <% else -%>
      if ( org.realityforge.braincheck.BrainCheckConfig.checkInvariants() )
      {
        org.realityforge.braincheck.Guards.invariant( () -> _$linking,
                                                      () -> "performLink invoked from outside link" );
      }
  <% end -%>
  <% linkable_attributes.select{|attribute| attribute.arez.eager? }.each do |attribute| -%>
      link<%= attribute.arez.name %>();
  