try {
configuration = configurationClass.newInstance();
} catch (ReflectiveOperationException ex) {
throw new ConfigurationException("Could not instantiate configuration class " + configurationClass.getName(), ex);
}
LaunchConfigData launchConfigData = LaunchConfigsInternal.createFromGlobalProperties(
StandardSystemProperty.USER_DIR.value(), configurationSource.getClassLoader(), configurationSource.getOverrideProperties(), configurationSource.getDefaultProperties(), Registries.empty()
);
LaunchConfigFactory launchConfigFactory = configuration.getLaunchConfigFactory();
if (launchConfigFactory instanceof DefaultLaunchConfigFactory) {
populateLaunchConfigFactory(launchConfigData, (DefaultLaunchConfigFactory) launchConfigFactory);