Fixed accidental use of String.isEmpty in SimpleCommandLineArgsParser

Issue: SPR-11321
Polishing
Introduced customizeConnection callbacks for URLConnection used by exists() / contentLength() / lastModified()

Issue: SPR-11320
(cherry picked from commit 4f45ad5)