* @throws ThreddsXmlParserException if there is a problem reading from the URI.
*/
static Source getSourceFromUri( URI documentUri )
throws ThreddsXmlParserException
{
HttpUriResolver httpUriResolver = HttpUriResolverFactory.getDefaultHttpUriResolver( documentUri );
InputStream is = null;
try
{
httpUriResolver.makeRequest();
is = httpUriResolver.getResponseBodyAsInputStream();
}
catch ( IOException e )
{
throw new ThreddsXmlParserException( "Problem accessing resource [" + documentUri.toString() + "].", e );
}