public LocalClientServerChannelProvider(Injector serverInjector) {
this.serverInjector = serverInjector;
}
public DataChannel get() throws ConfigurationException {
ObjectContextFactory factory = serverInjector
.getInstance(ObjectContextFactory.class);
// TODO: ugly cast
DataContext serverContext = (DataContext) factory.createContext();
return new ClientServerChannel(serverContext);
}