Added pure java implementation of the channel (only partially funcational at this point).