// Reset any static variables to avoid conflict in container-reuse.
sampleVertex = null;
sampleMap = null;
// Reset static variables cleared for avoiding OOM.
new JVMReuseImpl().cleanupStaticData();
UserPayload payload = getContext().getUserPayload();
conf = TezUtils.createConfFromUserPayload(payload);
PigContext.setPackageImportList((ArrayList<String>) ObjectSerializer
.deserialize(conf.get("udf.import.list")));