replacing reference to mgo with sun.