Update addMappingFromFile method