Adding channel support for java