public static int execAndGetResult(@NotNull final List<String> command) throws ExecutionException, InterruptedException {
assert command.size() > 0;
final GeneralCommandLine commandLine = new GeneralCommandLine(command);
final Process process = commandLine.createProcess();
return process.waitFor();
<BUG>}
public static String loadTemplate(@NotNull final ClassLoader loader,</BUG>
@NotNull final String templateName,
@Nullable final Map<String, String> variables) throws IOException {
@SuppressWarnings("IOResourceOpenedButNotSafelyClosed") final InputStream stream = loader.getResourceAsStream(templateName);

public static int execAndGetResult(@NotNull final List<String> command) throws ExecutionException, InterruptedException {
assert command.size() > 0;
final GeneralCommandLine commandLine = new GeneralCommandLine(command);
final Process process = commandLine.createProcess();
return process.waitFor();
}
@NotNull
public static String loadTemplate(@NotNull final ClassLoader loader,
@NotNull final String templateName,
@Nullable final Map<String, String> variables) throws IOException {
@SuppressWarnings("IOResourceOpenedButNotSafelyClosed") final InputStream stream = loader.getResourceAsStream(templateName);
