private static void CheckEngineResult(PackageEngineResult engineResult) { if (!engineResult.Succeeded) { throw new PackageBaseException( String.Join( Environment.NewLine, engineResult.Messages.Reverse().Select(mess => mess.Type.ToString() + " " + mess.Message) ) ); } }