anchor.diff:    <% end %>
     _service.<%= method.gwt_rpc.name %>(<%= method.parameters.select{|parameter| !parameter.imit.environmental?}.collect do |parameter|
     param_value = parameter.name
  -  if parameter.collection? && parameter.reference?
  +  if parameter.collection? && (parameter.remote_reference? || parameter.reference?)
       param_value = "$#{parameter.name}"
     elsif parameter.reference?
       param_value = "#{parameter.name}.get#{parameter.referenced_entity.primary_key.imit.name}()"
  +  elsif parameter.remote_reference?
  +    param_value = "#{parameter.name}.get#{parameter.referenced_remote_entity.primary_key.imit.name}()"
     end
     if parameter.nullable? && !parameter.collection?
       param_value = "null == #{parameter.name} ? null : #{param_value}"
  
positive.code:      result_string = 'result'
       if method.return_value.reference?
         result_string = "_repository.getByID( #{method.return_value.referenced_entity.imit.qualified_name}.class, result )"
       end
       if method.return_value.nullable?
         result_string = "null == result ? null : #{result_string}"
       end
     elsif method.return_value.reference?
       result_string = '$result'
     else
       result_string = 'result'
     end
  %>
    <% if method.return_value.collection? && method.return_value.reference? %>
          <%= annotated_type(method.return_value, :imit, :default, :final => true) %> $result = <% if method.return_value.nullable? %>null == result ? null : <% end %>new java.util.<%=  method.return_value.collection_type == :set ? 'HashSet' : 'ArrayList' %><<%= method.return_value.imit.java_component_type %>>();
          if( null != result )
          {
  
negative.code:              param_value =
               if method.return_value.reference?
                 "_repository.getByID( #{method.return_value.referenced_entity.imit.qualified_name}.class, id )"
               elsif method.return_value.remote_reference?
                 "_repository.getByID( #{method.return_value.referenced_remote_entity.imit.qualified_name}.class, id )"
               end
            %>
            $result.add( <%= param_value %> );
  