public static URI scopedNameToURI(ImmutableScopedName sn) { try { return new URI(sn.getNameScope() + "/" + sn.getLocalName()); } catch (URI.MalformedURIException e) { e.printStackTrace(); } return null; }