Created method to convert GPX into entity.