The basis is federal court abstention, giving the state courts the first chance to work this out. But the court tells the lower federal district court to retain jurisdiction to deal with federal issues that could potentially still be in the case after the matter makes it way through the state courts.