deleted isConnect() from JavaConnection