try {
registry.addListener(
LifecycleEvent.PRE_UPDATE,
MtTable1.class,
new ClientChannelServerDiffsListener1(),
"preUpdate");
ClientServerChannel csChannel = new ClientServerChannel(getDomain());
ClientChannel channel = new ClientChannel(new LocalConnection(csChannel));
CayenneContext context = new CayenneContext(channel);