@SuppressWarnings(value = "unchecked")
private void loadCommand(File file) {
try {
ClassLoader parent = getClass().getClassLoader();
GroovyClassLoader loader = new GroovyClassLoader(parent);
Class<? extends Command> groovyClass = (Class<? extends Command>) loader.parseClass(file);
if(groovyClass.isAnnotationPresent(CommandDefinition.class)) {
boolean correctClass = false;
for(Class groovyInterface : groovyClass.getInterfaces()) {
if(groovyInterface.equals(Command.class)) {