closed resource leak
try to flush()
removed mappingdetail
cleanup