NativeServices not available in plugin

Hi,

I am trying to get an instance of ProcessLauncher using NativeServices.getInstance().get(ProcessLauncher.class) within my plugin code, but I am getting the exception saying that ProcessLauncher is not available. The code snippet works inside the Gradle 2.14 internal code (seen it in DefaultExecHandle). Any idea how this could be achieved from a plugin?

Thanks,

Predrag