container/components/components/src/main/java/org/mobicents/slee/container/component/security/PolicyFileImpl.java
private InputStream getStream(URI uri) throws IOException {

		try {
			if (uri.toURL().getProtocol().equals(_PROTOCOL_FILE)) {
				String path = uri.toURL().getFile().replace('\\', File.separatorChar);

				return new FileInputStream(path);
			} else {
				return uri.toURL().openStream();
			}
		} catch (java.lang.IllegalArgumentException e) {
			// this happens if url is relative, meaning a file?
			
			return new FileInputStream(new File(uri));
		}

	}
private InputStream getStream(URI uri) throws IOException {

		try {
			if (uri.toURL().getProtocol().equals(_PROTOCOL_FILE)) {
				String path = uri.toURL().getFile().replace('\\', File.separatorChar);

				return new FileInputStream(path);
			} else {
				return uri.toURL().openStream();
			}
		} catch (java.lang.IllegalArgumentException e) {
			// this happens if url is relative, meaning a file?
			
			return new FileInputStream(new File(uri));
		}

	}
private InputStream getStream(URL url) throws IOException {