He was also a member of the winning Spain Davis Cup team in 2004 , 2008 , 2009 , and 2011 .
He is a part of the Spain Davis Cup team and has won the cup four times , in 2004 , 2008 , 2009 , and 2011 .