anchor.diff:      throws Exception
     {
       final java.io.StringWriter xml = new java.io.StringWriter();
  -    final <%= struct.ee.qualified_name %> input = <%= create_struct(struct) %>;
  +    final <%= struct.ee.qualified_name %> input = <%= create_struct(struct, nil) %>;
       javax.xml.bind.JAXB.marshal( input, xml );
       final String data = xml.toString();
   <% if struct.top_level? -%>
  
positive.code: <%
      end
  
  def create_parameter_value(p)
    v =
      if p.integer?
        "1"
  
negative.code:     else
        raise "Unknown parameter type for #{p.qualified_name}"
      end
    !p.collection? ? v : (p.collection_type == :sequence) ? "java.util.Arrays.#{type_spec}asList( #{v} )" : "new java.util.HashSet<>( java.util.Arrays.#{type_spec}asList( #{v} ) )"
  end
  
  def create_struct(struct, context)
    result = "new #{struct.ee.qualified_name}("
    result << struct.fields.collect { |p| create_parameter_value(p, context) }.join(", ")
    result << ")"
  end
  
  