Obstructions and realizations in K(n)-local stable homotopy theory