[java/ws] fix #12