public static bool AnalyzeAndExecute(string demand) { Request request = SplitRequest(demand); Type type = Type.GetType("XRDC.DemandManagement.SubControllers." + request.ControllerType); string status = request.Status; string options = ""; if (request.Options != null) { options = request.Options.ToString(); } object specializedcontroller = Activator.CreateInstance(type); SubController controller = (SubController)SubController.Build(specializedcontroller); return(controller.ExecuteRequest(status, options)); }