Get Spain willing to sell the place to take it off it's hands, and Germany offering a better price. Bingo.
Now the question is if the locals can be reconciled to membership in the Empire (smartest move would be to make it a grand duchy on par with Baden and the like, but then the same thing should have been done for Elsaß).
Of course, one wonders if the U.S. will sit still for this....