There should be an easier way to register custom actions with GSON. Right now this happens in a static method within ActionTypeAdapter so the only possibility I have is to copy that method and customize it. Moving this initialization to for example DiagramServerEndpoint could make registering new actions easier by providing an overridable method.