Boundary induced phase transitions in driven lattice gases with metastable states.