There is no way to retrieve the PID of the process using the apache-commons API (nor using the underlying Java API).
The "simplest" thing would probably be to have your external program executed in such a way that the program itself returns its PID somehow in the output it generates. That way you can capture it in your java app.
It's a shame java doesn't export the PID. It has been a feature-request for over a decade.