public void Extract(Options options, Rbac rbac) { try { string fileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, rbac.Name + ".xml"); rbac.Export(fileName); WriteColor(ConsoleColor.Green, fileName + " exported."); } catch (Exception ex) { WriteErrorLine(ex.Message); } }