JAVA. Create FileOutputStream using URL
<p>I have <code>URL</code> object, which I get from <code>ServletContext#getResource()</code>, and I want to use this <code>URL</code> object to overwrite existing file (using <code>FileOuputStream</code>). </p>

<p><em>How I can use URL object  to create new <code>FileOutputStream</code> object?</em> </p>

<p><code>FileOuputStream(URL.toURI())</code> - don't help, because scheme component of this URI is 'http', not 'file'</p>
