docs: private void processHibernateSessionFactoryBean(GraphRewrite event, String dsBeanName, String hibernateDialect, String springDatabaseName)
      {
          LOG.info("DS Name: " + dsBeanName + ", " + hibernateDialect + ", " + springDatabaseName);
          SpringBeanService springBeanService = new SpringBeanService(event.getGraphContext());
          DataSourceService dataSourceService = new DataSourceService(event.getGraphContext());
  
          for (SpringBeanModel model : springBeanService.findAllBySpringBeanName(dsBeanName))
          {
              if (model instanceof JNDIReferenceModel && ((JNDIReferenceModel) model).getJndiReference() != null)
              {
                  // then this is likely a datasource; set JNDI to Datasource
                  JNDIReferenceModel ref = (JNDIReferenceModel) model;
                  DataSourceModel dataSource = dataSourceService.addTypeToModel(ref.getJndiReference());
  
                  if (StringUtils.isNotBlank(hibernateDialect))
                  {
                      LOG.info(" - Resolved Hibernate dialect: " + hibernateDialect);
                      String resolvedType = HibernateDialectDataSourceTypeResolver.resolveDataSourceTypeFromDialect(hibernateDialect);
                      if (StringUtils.isNotBlank(resolvedType))
                      {
                          dataSource.setDatabaseTypeName(resolvedType);
                      }
                  }
                  else if (StringUtils.isNotBlank(springDatabaseName))
                  {
                      LOG.info(" - Resolved Spring database type: " + springDatabaseName);
                      String resolvedType = SpringDataSourceTypeResolver.resolveDataSourceTypeFromDialect(springDatabaseName);
                      if (StringUtils.isNotBlank(resolvedType))
                      {
                          dataSource.setDatabaseTypeName(resolvedType);
                      }
                  }
  
              }
              else
              {
                  LOG.warning("Not JNDI Reference.");
              }
          }
      }