Isometric embeddings, Einstein metrics and extension of isometries