actually implements an apache-mina NetworkService