public static AbstractCommandHandler GetCommandHandler(AbstractMFDevelopmentKit developmentKit) { AbstractCommandHandler commandHandler = null; if (developmentKit.MFilesSettings == null) { return(null); } switch (developmentKit.MFilesSettings.MFDevToolCommand) { case MFDevelopmentKitCommand.New: case MFDevelopmentKitCommand.Update: commandHandler = new GeneratorHandler(); break; default: // default commandHandler = new DeployerHandler(); break; } commandHandler.MFDevelopmentKit = developmentKit; return(commandHandler); }