Adding meta-commands and post processors is largely a matter of implementing the appropriate interface and making the context aware of the processor instance. This can be done by adding the processor in the properties file, or by adding it programmatically with the appropriate ClientContext method. PosProcessor.postProcess() takes an AbstractServiceCall argument instead of a ServiceCall. Also, the TypePostProcessor class delegates further to service-type specific methods.
Figure 5-4 MetacommandProcessor and PostProcessor