public static LinkImpl fromXml(Node config, XPath xpathProcessor)
throws IllegalStateException {
String href = XPathHelper.valueOf(config, "@href", xpathProcessor);
if (href == null)
throw new ConfigurationException("Source path of link definition is mandatory!");
String charset = XPathHelper.valueOf(config, "@charset", xpathProcessor);
String media = XPathHelper.valueOf(config, "@media", xpathProcessor);
String rel = XPathHelper.valueOf(config, "@rel", xpathProcessor);
String rev = XPathHelper.valueOf(config, "@rev", xpathProcessor);