int size = attributes.getLength(); for (int i = 0; i < size; i++) { String key = attributes.getQName(i); String value = attributes.getValue(i);  if (key.equals(ParserConstants.NAME_ATTRIBUTE)) { reference.setName(value); continue; }  if (key.equals(ParserConstants.INTERFACE_ATTRIBUTE)) { reference.setInterfacename(value); continue; }  if (key.equals(ParserConstants.CARDINALITY_ATTRIBUTE)) { reference.setCardinality(value); continue; }  if (key.equals(ParserConstants.POLICY_ATTRIBUTE)) { reference.setPolicy(value); continue; }  if (key.equals(ParserConstants.TARGET_ATTRIBUTE)) { reference.setTarget(value); continue; }  if (key.equals(ParserConstants.BIND_ATTRIBUTE)) { reference.setBind(value); continue; }  if (key.equals(ParserConstants.UNBIND_ATTRIBUTE)) { reference.setUnbind(value); continue; } root.logError("unrecognized reference element attribute: " + key); }
processAttributes(attributes);
	ReferenceElement(ParserHandler root, ComponentElement parent, Attributes attributes) {		this.root = root;		this.parent = parent;		reference = new ReferenceDescription();		int size = attributes.getLength();		for (int i = 0; i < size; i++) {			String key = attributes.getQName(i);			String value = attributes.getValue(i);			if (key.equals(ParserConstants.NAME_ATTRIBUTE)) {				reference.setName(value);				continue;			}			if (key.equals(ParserConstants.INTERFACE_ATTRIBUTE)) {				reference.setInterfacename(value);				continue;			}			if (key.equals(ParserConstants.CARDINALITY_ATTRIBUTE)) {				reference.setCardinality(value);				continue;			}			if (key.equals(ParserConstants.POLICY_ATTRIBUTE)) {				reference.setPolicy(value);				continue;			}			if (key.equals(ParserConstants.TARGET_ATTRIBUTE)) {				reference.setTarget(value);				continue;			}			if (key.equals(ParserConstants.BIND_ATTRIBUTE)) {				reference.setBind(value);				continue;			}			if (key.equals(ParserConstants.UNBIND_ATTRIBUTE)) {				reference.setUnbind(value);				continue;			}			root.logError("unrecognized reference element attribute: " + key);		}		if (reference.getName() == null) {			root.logError("reference name not specified");		}		if (reference.getInterfacename() == null) {			root.logError("reference interface not specified");		}	}