> +      Process pr = null;
> +      try {
> +         pr = rt.exec("whoami /groups | find \"S-1-1-0\"");
> +      } catch (IOException e) {
> +         return "Everyone";
> +      }
> +      try {
> +         pr.waitFor();
> +      } catch (InterruptedException e) {
> +         e.printStackTrace();
> +      }
> +      try ( InputStreamReader reader = new 
> InputStreamReader(pr.getInputStream(), Charsets.UTF_8)) {
> +         return CharStreams.toString(reader).split(" ")[0];
> +      } catch (IOException e) {
> +         return "Everyone";
> +      }

Could you explain this a bit? Why do we need the three blocks here? Could this 
be simplified into one block?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/879/files#r45024634

Reply via email to