class SaxUtils {

	public static String getSystemId(Resource resource) {
		try {
			return new URI(resource.getURL().toExternalForm()).toString();
		} catch (IOException ex) {
			logger.debug("Could not get System ID from [" + resource + "], ex");
			return null;
		} catch (URISyntaxException e) {
			logger.debug("Could not get System ID from [" + resource + "], ex");
			return null;
		}
	}

}