anchor.diff:    {
       if ( !java.util.Objects.equals( <%= Reality::Naming.camelize(attribute.arez.name) %>, <%= getter_prefix(attribute) %><%= attribute.arez.name %>() ) ) {
         $set<%= attribute.arez.name %>( <%= Reality::Naming.camelize(attribute.arez.name) %> );
  -      if( replicant.Replicant.isChangeBrokerEnabled() && replicant.Replicant.context().getChangeEmitter().isEnabled() )
  +      if( isChangeEmitterEnabled() )
         {
  -        replicant.Replicant.context().getChangeEmitter().attributeChanged( this, <%= Reality::Naming.uppercase_constantize( attribute.name ) %>, <%= Reality::Naming.camelize(attribute.arez.name) %> );
  +        getChangeEmitter().attributeChanged( this, <%= Reality::Naming.uppercase_constantize( attribute.name ) %>, <%= Reality::Naming.camelize(attribute.arez.name) %> );
         }
       }
     }
  
positive.code:   {
      return this;
    }
  }
  
negative.code:   @arez.annotations.PostConstruct
    final void postConstruct()
    {
      if ( isChangeEmitterEnabled() )
      {
        getChangeEmitter().entityAdded( this );
      }
    }
  
    @arez.annotations.PostDispose
    final void postDispose()
    {
      if ( isChangeEmitterEnabled() )
      {
        getChangeEmitter().entityRemoved( this );
      }
    }
  <% end -%>
  