}
public WebImplementation read(XMLStreamReader reader) throws ContributionReadException, XMLStreamException {
// Read an <implementation.web> element
WebImplementation implementation = implementationFactory.createWebImplementation();
implementation.setUnresolved(true);
// Read the webapp uri attribute
String webURI = getString(reader, "web-uri");
if (webURI != null) {
implementation.setWebURI(webURI);
// Set the URI of the component type
// TODO: This should point to the base uri of the WAR file
implementation.setURI(webURI);
}
// Skip to end element
while (reader.hasNext()) {
if (reader.next() == END_ELEMENT && IMPLEMENTATION_WEB.equals(reader.getName())) {