static <R> R runCommand(IOFunction<R> func) { try { return func.call(); } catch (IOException e) { throw new BajaResourceException(e); } }