private WebServiceFeature parseElement(final XMLEventReader reader)
throws WebServiceException {
try {
final StartElement element = reader.peek().asStartElement();
final QName elementName = element.getName();
final FeatureReader featureReader = nameToReader.get(elementName);
if (featureReader != null) {
return featureReader.parse(reader);
}
else {
// TODO logging message
throw LOGGER.logSevereException(new WebServiceException("unknown element " + element));
}