@steve do we have your blessing to get some minutes of Andrea Boriero on this? I had already a chat with him about it so I think he has a clear picture on what needs to be done already.
to answer:
String value = System.getenv( name );