for (String className = "Document"; className.trim().length() != 0;) {
final ClassConfiguration classConfig = jsConfig.getClassConfiguration(className);
for (final String function : classConfig.functionKeys()) {
addFunction(document, function);
}
for (final String property : classConfig.propertyKeys()) {
addProperty(document, property,
classConfig.getPropertyReadMethod(property) != null,
classConfig.getPropertyWriteMethod(property) != null);
}
className = classConfig.getExtendedClass();