private Dependencies readDependencies(Element spec) {
        return new DependenciesBuilder(spec).build();
    }
reads the common attributes and elements of all chained component elements.
@author Tony Vaagenes
config-model/src/main/java/com/yahoo/vespa/model/builder/xml/dom/chains/GenericChainedComponentModelBuilder.java