Tesla just won a battle in its multi-year war with franchise automobile dealers. The all-electric automaker and energy company is eligible to open a second store in Virginia, according to a ruling Wednesday by the state’s Department of Motor Vehicles Commissioner Richard D. Holcomb.
Holcomb’s ruling overturns a previous decision from a hearing examiner who had blocked the automaker from obtaining a dealership license.
Tesla sells its own cars directly online and through its own branded stores, not through franchised dealerships. The company has one store and service center in Virginia as well as one “gallery,” where customers can look at the cars but not buy, test drive or even discuss the price. Tesla has been trying for two years to open up a second store, where it can sells its vehicles, in Richmond.
Virginia law prohibits manufacturers from owning or operating a dealership. The state’s DMV commissioner is allowed to grant a license if a hearing determines that there is no dealer independent of the manufacturer that can operate a franchise. Tesla was initially denied the license but later granted one through a settlement agreement in December 2013.
The Virginia Automobile Dealers Association has aggressively opposed Tesla’s presence in the state. The lobbying and industry group filed a lawsuit in March after Tesla applied with the DMV to open a second store. The lawsuit, filed in March, claims Tesla and Holcomb violated a 2013 agreement that the automaker could not own or operate a second dealership in the state until August 2017.
Get Data Sheet, Fortune‘s daily technology newsletter.
In his decision, Holcomb determined that there was no dealer independent of the automaker in the community that could own and operate a Tesla franchise in a manner consistent with the public interest. “Therefore, Tesla is eligible to operate as both a manufacturer and a dealer of its electric motor vehicles,” Holcomb wrote.
Holcomb’s decision centered on the “public’s interest,” including whether a dealership franchise could be profitable if it adhered to Tesla’s business model. Holcomb’s decision provides some insight into the dealership business model and how it differs from Tesla.
Technically, Tesla still has one more hurdle: approval from the Motor Vehicle Dealer Board. But Tesla, who applauded the commissioner’s decision, sees this as a minor technicality on the path to opening its second store.
“This decision will allow Richmond-area consumers to learn about and purchase their Tesla vehicles in closer proximity to their homes. We are thankful for the many Tesla owners and Virginians for their support,” the company said in an emailed statement. “We intend to swiftly begin construction to open our new store and service center at 9850 West Broad Street and look forward to joining Richmond’s business community.”
The VADA or any other opponent to the commissioner’s decision has 33 days to file an appeal with the Virginia Circuit Court.