in base/src/main/java/org/apache/commons/chain2/impl/ContextBase.java [430:452]
private void initialize() {
// Retrieve the set of property descriptors for this Context class
try {
pd = Introspector.getBeanInfo
(getClass()).getPropertyDescriptors();
} catch (IntrospectionException e) {
pd = new PropertyDescriptor[0]; // Should never happen
}
// Initialize the underlying Map contents
for (PropertyDescriptor propertyDescriptor : pd) {
String name = propertyDescriptor.getName();
// Add descriptor (ignoring getClass() and isEmpty())
if (!("class".equals(name) || "empty".equals(name))) {
if (descriptors == null) {
descriptors = new HashMap<String, PropertyDescriptor>(pd.length - 2);
}
descriptors.put(name, propertyDescriptor);
super.put(name, singleton);
}
}
}