if (host == null) {
System.out.println("Host cannot be found");
return;
}
HostAutoStartManager hasm = host.getHostAutoStartManager();
if (hasm == null) {
System.out
.println("HostAutoStartManager is not available.");
return;
}
AutoStartDefaults asd = new AutoStartDefaults();
asd.setStartDelay(new Integer(100));
asd.setEnabled(Boolean.TRUE);
asd.setStopDelay(new Integer(60));
HostAutoStartManagerConfig spec = new HostAutoStartManagerConfig();
spec.setDefaults(asd);
hasm.reconfigureAutostart(spec);
System.out
.println("Done with reconfiguring the autostart options.");
}