you could user  context.getResult().asPropertyList().add(entry.getKey(), entry.getValue())