I think that what you want to do is not correct. You want override totally foundation clientlib, why?If you want to modify some behaviour you can do this just extending the clientlib, and this is performed just putting in your clientlib the same categories of foundation clientlib.