[java/ws] Fix WSGroup protocol parsing