slightly cleanup of TextPlainServletClosureEntity