public static String[] split(PrefixMapping prefixMap, Resource resource) {
		String uri = resource.getURI();
		if (uri == null) {
			return new String[] { null, null };
		}
		Map<String, String> prefixMapMap = prefixMap.getNsPrefixMap();
		Set<String> prefixes = prefixMapMap.keySet();
		String[] split = { null, null };
		for (String key : prefixes) {
			String ns = prefixMapMap.get(key);
			if (uri.startsWith(ns)) {
				split[0] = key;
				split[1] = uri.substring(ns.length());
				return split;
			}
		}
		split[1] = uri;
		return split;
	}