UnmarshallingContext ctx = (UnmarshallingContext) ictx;
if (!ctx.isAt(marshalURI, marshallName))
ctx.throwStartTagNameError(marshalURI, marshallName);
int size = ctx.attributeInt(marshalURI, SIZE_ATTRIBUTE_NAME, DEFAULT_SIZE);
Properties map = (Properties) obj;
if (map == null)
map = new Properties(size);
ctx.parsePastStartTag(marshalURI, marshallName);
while (ctx.isAt(marshalURI, ENTRY_ELEMENT_NAME)) {
Object key = ctx.attributeText(marshalURI, KEY_ATTRIBUTE_NAME, null);
ctx.next();
Object value = ctx.getText();
map.put(key.toString(), value.toString());
ctx.parsePastEndTag(marshalURI, ENTRY_ELEMENT_NAME);
}
ctx.parsePastEndTag(marshalURI, marshallName);
return map;
}