if (model != null){
String softwareDocuGeneratorClass = (String) model.getAttributes().getFromMap(GeneralConstants.SOFTWARE_DOCU_GENERATOR);
//optimization: generator may be string or class or instance
if (softwareDocuGeneratorClass != null){
HasDocumentation generator = (HasDocumentation) Class.forName(softwareDocuGeneratorClass).newInstance();
generator.fillDocumentation(type, documentationParent, context);
}
}