return new DecoratedServiceListener();
}
private <V> byte[] encode(V data, Class<? extends V> clz) {
return new GsonBuilder().registerTypeAdapter(StateNode.class, new StateNodeCodec())
.registerTypeAdapter(StackTraceElement.class, new StackTraceElementCodec())
.create()
.toJson(data, clz).getBytes(Charsets.UTF_8);
}