public static String getTargetLastReplicatedStateFromParameters(Map<String, String> m) {
    if ((m != null) && (m.containsKey(KEY.CURR_STATE_ID_TARGET.toString()))){
      return m.get(KEY.CURR_STATE_ID_TARGET.toString());
    }
    return null;
  }
Determines if a current replication event (based on event id) is allowed to
replicate-replace-into a given metastore object (based on state_id stored in their parameters)
ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSpec.java