public MainRemote(final Class<?> type, final String... passed) {
this.app = type;
this.args = Arrays.copyOf(passed, passed.length);
}
public void exec(final MainRemote.Script script) throws Exception {
<BUG>final File file = File.createTempFile("takes-", ".txt");
file.delete();

final Method method = this.app.getDeclaredMethod(</BUG>
"main", String[].class

public MainRemote(final Class<?> type, final String... passed) {
this.app = type;
this.args = Arrays.copyOf(passed, passed.length);
}
public void exec(final MainRemote.Script script) throws Exception {
final File file = File.createTempFile("takes-", ".txt");
if (!file.delete()) {
file.deleteOnExit();
}
final Method method = this.app.getDeclaredMethod(
"main", String[].class
