protected ProcessEnvironment createProcessEnvironment(OperatingSystem operatingSystem) {
if (useNativePlatform) {
try {
net.rubygrapefruit.platform.Process process = net.rubygrapefruit.platform.Native.get(Process.class);
return new NativePlatformBackedProcessEnvironment(process);
} catch (NativeIntegrationUnavailableException ex) {
LOGGER.debug("Native-platform process integration is not available. Continuing with fallback.");
}
}