code: protected function createHttpServer($host, $port, $blueprintFile) {
          if ( ! is_file($blueprintFile)) {
              throw new LogicException(
                  s('Blueprint not found at %s.', $blueprintFile)
              );
          }
  
          $server = new HttpServer($host, $port, $blueprintFile);
          $server->echoMessage(s('Using blueprint file %s', $blueprintFile));
  
          return $server;
      }
docs: @param $host
  @param $port
  @param $blueprintFile
  
  @return HttpServer