What do you think of having a WSBody type for Java too? You would probably be able to generalise even more code.

e.g.
```java
interface WSBody {
  String getContentType();
  int getContentLength();
  InputStream getContent();
}
```