@Override
public Response execCommand(String[] params) {
// TODO Test if the loaded classes may be used by another classloader.
Response response = null;
CommandVault vault = new CommandVault();
try {
CustomClassLoader loader = new CustomClassLoader();
File file = null;
for (int i = 1; i < params.length - 1; i++) {
file = new File(params[i]);
List<Class<?>> list = loader
.loadAndScanJar(Command.class, file);
for (Class<?> clazz : list) {
vault.addClass((Class<? extends Command>) clazz);
}
file = null;
}