Implemented all the M2M java methods