Make Resources.isDirectory throw an exception instead of returning false for a URL with a protocol other than jar/file, it makes more sense