private void initialize(String[] aliases) {
if (instantiationPolicy == null) {
instantiationPolicy = new DefaultPropertyInstantiationPolicy();
}
PropertyAccessor propertyAccessor = new NestedPropertyAccessor(resultClass, instantiationPolicy);
this.aliases = new String[aliases.length];
setters = new Setter[aliases.length];
for (int i = 0; i < aliases.length; ++i) {
String alias = aliases[i];
if (alias != null) {
this.aliases[i] = alias;
setters[i] = propertyAccessor.getSetter(resultClass, alias);
}
}
isInitialized = true;
}