Recursive function which take objectA and complete it with objectB. Returns completed objectA.