finish HMNWEClient java version.