anchor.diff:    @javax.annotation.Nonnull
     public <%= entity.jpa.qualified_name %> create<%= entity.name %>( @javax.annotation.Nonnull final <%= entity.sync.master_entity.jpa.qualified_name %> mEntity )
     {
  -    final <%= entity.jpa.qualified_name %> entity = new <%= entity.jpa.qualified_name %>( <%= entity.attributes.select{|a| a.immutable? && !a.generated_value? && a.jpa? && a.jpa.persistent?}.collect{|a| a.sync? && a.reference? ? "#{a.referenced_entity.data_module.name != data_module.name ? Reality::Naming.camelize(a.referenced_entity.data_module.name) + "()." : '' }to#{a.referenced_entity.name}( mEntity.#{getter_prefix(a)}#{a.name}() )" : a.name.to_s == 'MasterId' ? 'mEntity.getId()' : !a.sync? && !%w(CreatedAt DeletedAt).include?(a.name.to_s) ? 'null' : "mEntity.#{getter_prefix(a)}#{a.name}()" }.join(', ') %> );
  +    final <%= entity.jpa.qualified_name %> entity = new <%= entity.jpa.qualified_name %>( <%= entity.attributes.select{|a| a.immutable? && !a.generated_value? && a.jpa? && a.jpa.persistent?}.collect{|a| a.sync? && a.reference? ? "#{a.referenced_entity.data_module.name != data_module.name ? Reality::Naming.camelize(a.referenced_entity.data_module.name) + "()." : '' }to#{a.referenced_entity.name}( mEntity.#{getter_prefix(a)}#{a.name}() )" : a.name.to_s == 'MasterId' ? 'mEntity.getId()' : !a.sync? && !%w(CreatedAt).include?(a.name.to_s) ? 'null' : "mEntity.#{getter_prefix(a)}#{a.name}()" }.join(', ') %> );
   <% entity.attributes.select{|a|!a.immutable? && !a.generated_value? && a.jpa? && a.jpa.persistent?}.each do |a| -%>
  -    entity.set<%= a.name %>( <%= a.sync? && a.reference? ? "#{a.referenced_entity.data_module.name != data_module.name ? Reality::Naming.camelize(a.referenced_entity.data_module.name) + "()." : '' }to#{a.referenced_entity.name}( mEntity.#{getter_prefix(a)}#{a.name}() )" : a.name.to_s == 'MasterId' ? 'mEntity.getId()' : !a.sync? && !%w(CreatedAt DeletedAt).include?(a.name.to_s) ? 'null' : "mEntity.#{getter_prefix(a)}#{a.name}()" %> );
  +    entity.set<%= a.name %>( <%= a.sync? && a.reference? ? "#{a.referenced_entity.data_module.name != data_module.name ? Reality::Naming.camelize(a.referenced_entity.data_module.name) + "()." : '' }to#{a.referenced_entity.name}( mEntity.#{getter_prefix(a)}#{a.name}() )" : a.name.to_s == 'MasterId' ? 'mEntity.getId()' : !a.sync? && !%w(CreatedAt).include?(a.name.to_s) ? 'null' : "mEntity.#{getter_prefix(a)}#{a.name}()" %> );
   <% end -%>
       em().persist( entity );
       mEntity.set<%= entity.name %>( entity );
  -<% if entity.attributes.all?{|a|((a.immutable? || a.generated_value?) && a.jpa? && a.jpa.persistent?) || %w(MasterId CreatedAt DeletedAt).include?(a.name.to_s)} -%>
  +<% if entity.attributes.all?{|a|((a.immutable? || a.generated_value?) && a.jpa? && a.jpa.persistent?) || %w(MasterId CreatedAt).include?(a.name.to_s)} -%>
       mEntity.setMasterSynchronized( true );
   <% end -%>
       em().persist( mEntity );
  
positive.code: <% end -%>
  <% if core_entity && !entity.sync.support_unmanaged? -%>
    @javax.annotation.Nonnull
    public <%= entity.jpa.qualified_name %> create<%= entity.name %>( <%= entity.attributes.select{|a| !%w(MasterId CreatedAt DeletedAt).include?(a.name.to_s) && !a.generated_value? && a.jpa? && a.jpa.persistent?}.collect{|a| "#{annotated_type(a, :jpa, :default, :final => true)} #{Reality::Naming.camelize(a.name)}"}.join(', ') %> )
    {
      return create<%= entity.name %>( <%= Reality::Naming.camelize(data_module.repository.sync.master_data_module) %>().create<%= entity.sync.entity_prefix %><%= entity.name %>( <%= entity.attributes.select{|a| !%w(MasterId CreatedAt DeletedAt).include?(a.name.to_s) && a.sync? &&!a.generated_value? && a.jpa? && a.jpa.persistent?}.collect{|a| a.reference? ? "#{Reality::Naming.camelize(data_module.repository.sync.master_data_module)}().#{Reality::Naming.camelize(a.referenced_entity.dao.jpa.dao_service_name)}().#{a.referenced_entity.abstract? ? 'getById' : "findBy#{a.referenced_entity.name}"}( #{Reality::Naming.camelize(a.name)}#{a.referenced_entity.abstract? ? '.getMasterId()' : ''} )" : Reality::Naming.camelize(a.name)}.join(', ') %> ) );
    }
  
  <% else -%>
  
negative.code:   public <%= entity.jpa.qualified_name %> create<%= entity.name %>( <%= entity.attributes.select{|a| (!core_entity || 'MasterId' != a.name.to_s) && !a.generated_value? && a.jpa? && a.jpa.persistent? && !defaults.has_attribute?(a.name) }.collect{|a| "#{annotated_type(a, :jpa, :default, :final => true)} #{Reality::Naming.camelize(a.name)}"}.join(', ') %>)
    {
  <% if core_entity -%>
      return create<%= entity.name %>( <%= Reality::Naming.camelize(data_module.repository.sync.master_data_module) %>().create<%= entity.sync.entity_prefix %><%= entity.name %>( <%= entity.attributes.select{|a| !%w(CreatedAt).include?(a.name.to_s) && a.sync? &&!a.generated_value? && a.jpa? && a.jpa.persistent? && a.name.to_s != 'MasterId'}.collect{|a| defaults.has_attribute?(a.name) ? defaults.value_for(a.name) : a.reference? ? "#{Reality::Naming.camelize(data_module.repository.sync.master_data_module)}().#{Reality::Naming.camelize(a.referenced_entity.dao.jpa.dao_service_name)}().#{a.referenced_entity.abstract? ? 'getById' : "findBy#{a.referenced_entity.name}"}( #{Reality::Naming.camelize(a.name)}#{a.referenced_entity.abstract? ? '.getMasterId()' : ''} )" : Reality::Naming.camelize(a.name)}.join(', ') %> ) );
  <% elsif entity.jpa.support_create? -%>
      return <%= Reality::Naming.camelize(entity.dao.jpa.dao_service_name) %>().create( <%= entity.attributes.select{|a|!a.generated_value? && a.jpa? && a.jpa.persistent?}.collect {|a| defaults.has_attribute?(a.name) ? defaults.value_for(a.name) : Reality::Naming.camelize(a.name) }.join(', ') %> );
  <% else -%>
  