A method of bonding a first object to a second object wherein the first and second objects each have a surface portion, the method comprising: • providing the first and second objects and further providing a profile body extending along a longitudinal direction and having a shape that defines a first and a second undercut, • the method being characterized by embedding the profile body in the second object along the second object surface portion so that the second undercut is within material of the second object, • and embedding the profile body in the first object along the first object surface portion so that the first undercut is within thermoplastic material of the first object, • wherein at least embedding of the profile body in the first object is caused by mechanical energy impinging on the first object and/or on the second object while the first object and the second object are pressed against each other, and wherein at least one of the following conditions is met: • embedding the profile body in the second object is carried out prior to embedding the profile body in the first object so that during the step of embedding the profile body in the first object, the profile body is embedded in the second object; • the profile body comprises a stabilizer portion and at least one first anchoring portion forming the first undercut projecting from the stabilizer portion into a first direction, and at least one second anchoring portion forming the second undercut projecting from the stabilizer portion into a second direction, wherein the step of embedding the profile body in the first object and/or the second object comprises causing the stabilizer portion to extend between the first and second object surface portions. • providing the first and second objects and further providing a profile body extending along a longitudinal direction and having a shape that defines a first and a second undercut, • the method being characterized by embedding the profile body in the second object along the second object surface portion so that the second undercut is within material of the second object, • and embedding the profile body in the first object along the first object surface portion so that the first undercut is within thermoplastic material of the first object, • wherein at least embedding of the profile body in the first object is caused by mechanical energy impinging on the first object and/or on the second object while the first object and the second object are pressed against each other, and wherein at least one of the following conditions is met: • embedding the profile body in the second object is carried out prior to embedding the profile body in the first object so that during the step of embedding the profile body in the first object, the profile body is embedded in the second object; • the profile body comprises a stabilizer portion and at least one first anchoring portion forming the first undercut projecting from the stabilizer portion into a first direction, and at least one second anchoring portion forming the second undercut projecting from the stabilizer portion into a second direction, wherein the step of embedding the profile body in the first object and/or the second object comprises causing the stabilizer portion to extend between the first and second object surface portions. • embedding the profile body in the second object is carried out prior to embedding the profile body in the first object so that during the step of embedding the profile body in the first object, the profile body is embedded in the second object; • the profile body comprises a stabilizer portion and at least one first anchoring portion forming the first undercut projecting from the stabilizer portion into a first direction, and at least one second anchoring portion forming the second undercut projecting from the stabilizer portion into a second direction, wherein the step of embedding the profile body in the first object and/or the second object comprises causing the stabilizer portion to extend between the first and second object surface portions.