if(v == null) {
v = value;
}
else {
// EnvVars.platform is private with no getter, but we really need it
Platform platform = null;
try {
platform = (Platform) EnvVars.class.getField("platform").get(env);
} catch (Exception e) {
// nothing we can really do
}