The interesting issue is one the local folks have apparently drawn from a recent case, Hodges v. Commonwealth, 64 Va. App. 687, 771 S.E.2d 693 (2015), in which a fed park ranger charged a guy with another charge (driving on suspended, I think) and searched the vehicle subject to the arrest. The guy had a handgun in a closed center console with a plastic cup over the handle of the gun. The Floyd Co. Circuit Judge said that was "evidence of intent to hide the gun" and found him guilty on the concealed weapon charge. The Ct. of Apps. said, well, the cop was unable to say whether or not the compartment was latched or not (which I interpret to mean whether or not the compartment was in fact closed), but what the appeal was about was whether the "secured in a container in the vehicle" exception was an element of the offense or an affirmative defense. Everybody agreed that if it was an element, then the Commonwealth loses, because it didn't prove that element, and that if an affirmative defense, then the Commonwealth wins, because the defendant didn't offer evidence on that issue. The Court held that the amendment to the statute was clearly intended to overrule a long series of judicial opinions and because of that the intent of the legislature was to change the law in a way that created a new element of the offense. The holding of the case had nothing to do with what the word, "latched", means in this context, or whether the gun was, in fact, secured in a container.
So, on what I've read at this point, someone charged the defendant in this case because his container was not "latched", as if Hodges had created a new reading on the statute. They do stuff like this, knowing perfectly well, the court did no such thing, just to make a defendant fund their attempt to nickel and dime the law to conform more to their liking. Experimenting on nonconsenting human subjects, in other words.