network: fixed Java interface.