}
public void marshal(Object object,
HierarchicalStreamWriter writer,
MarshallingContext context) {
QueryResults results = (QueryResults) object;
// write out identifiers
List<String> originalIds = Arrays.asList( results.getIdentifiers() );
List<String> actualIds = new ArrayList();
if ( results instanceof NativeQueryResults ) {
for ( String identifier : originalIds ) {
// we don't want to marshall the query parameters
Declaration declr = ((NativeQueryResults) results).getDeclarations().get( identifier );