Doubt in resolving merge conflict

I am not able to understand what part to keep and what part to discard in solving merge conflict.
Am i supposed to keep all the functions such as getobjectmapper and all other. Because without it, all the code in mainreadfile becomes useless.