Rewrite refresh metadata method, support transient field.