public String loadFunction(String function, OsFamily family) throws FunctionNotFoundException {
try {
return Resources.toString(bundleContext.getBundle().getResource(
String.format("/functions/%s.%s", function, ShellToken.SH.to(family))), Charsets.UTF_8);
} catch (IOException e) {
throw new FunctionNotFoundException(function, family, e);
}
}