[GATEWAY] Cut over MetaDataStateFormat to Path API

I looked at this this method for a while, trying to figure out if equals() was really ok, but its confusing: it seems to only delete state files. What is this incoming parameter fileName?