}
public ServiceDescriptions read(XMLStreamReader reader, ProcessorContext context) throws XMLStreamException,
ContributionReadException {
int event = reader.getEventType();
ServiceDescriptions sds = null;
ServiceDescription sd = null;
String propertyName = null;
String propertyType = "String";
Object propertyValue = null;
String propertyLiteral = null;
boolean xml = false;
boolean multiValued = false;
while (true) {
switch (event) {
case XMLStreamConstants.START_ELEMENT:
QName name = reader.getName();
if (ServiceDescriptions.SERVICE_DESCRIPTIONS_QNAME.equals(name)) {
sds = factory.createServiceDescriptions();
} else if (ServiceDescriptions.SERVICE_DESCRIPTION_QNAME.equals(name)) {
sd = factory.createServiceDescription();
sds.add(sd);
} else if ("property".equals(name.getLocalPart())) {
multiValued = false;
propertyName = reader.getAttributeValue(null, "name");
propertyType = reader.getAttributeValue(null, "value-type");
if (propertyType == null) {