class VelocityRequest extends AbstractViewRequest {

    @Override
    public PrintWriter getPrintWriter() {
        if (writer == null) {
            throw new IllegalStateException(
                    "A writer-less Tiles request has been created, cannot return a PrintWriter");
        }
        if (writer instanceof PrintWriter) {
            return (PrintWriter) writer;
        }
        return new PrintWriter(writer);
    }

    public  VelocityRequest(
            DispatchRequest enclosedRequest, Context ctx, Writer writer);

}