I thnk this code is taken directly from `./spark-class`. So I think it will preserve whatever the behavior is there.