qNames = new QName[size];
readMethods = new Method[size];
writeMethods = new Method[size];
for (int i = 0; i < size; i++) {
PropertyDescriptor propertyDescriptor = propertyDescriptors[i];
String name = propertyDescriptor.getName();
QName qName = DOCUMENT_FACTORY.createQName(name);
qNames[i] = qName;
readMethods[i] = propertyDescriptor.getReadMethod();
writeMethods[i] = propertyDescriptor.getWriteMethod();
Integer index = new Integer(i);
nameMap.put(name, index);
nameMap.put(qName, index);
}