return new ApplicationSpecificationAdapter(generator, builder.create());
}
public static void addTypeAdapters(GsonBuilder builder) {
builder
.registerTypeAdapter(Schema.class, new SchemaTypeAdapter())
.registerTypeAdapter(ApplicationSpecification.class, new ApplicationSpecificationCodec())
.registerTypeAdapter(FlowSpecification.class, new FlowSpecificationCodec())
.registerTypeAdapter(FlowletSpecification.class, new FlowletSpecificationCodec())
.registerTypeAdapter(ProcedureSpecification.class, new ProcedureSpecificationCodec())
.registerTypeAdapter(MapReduceSpecification.class, new MapReduceSpecificationCodec())