private void createFile(ContentRequest request, ApplicationFile file) {
        if ( ! request.hasRequestBody()) {
            throw new BadRequestException("Request must contain body when creating a file");
        }
        try {
            file.writeFile(request.getData());
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
Requests for content and content status, both for prepared and active sessions,
are handled by this class.

@author hmusum
configserver/src/main/java/com/yahoo/vespa/config/server/http/ContentHandler.java