ClassLoader cl = Thread.currentThread().getContextClassLoader();
Class execls = null;
try {
execls = cl.loadClass(command);
} catch (ClassNotFoundException e) {
throw new BadCommandException("Unknown command.", command);
}
Executable exe;
try {
exe = (Executable) execls.newInstance();