class ContentResponseTransformer implements ResponseTransformer {

    @Override
    public String render(Object model) {
        if (model instanceof Content) {
            Content content = (Content) model;
            return new String(content.getBody());
        }
        else if (model != null) {
            return model.toString();
        }
        else {
            return null;
        }
    }

}