public static boolean isApplicable(ASTNode node){
    return (node.getToken().getType() == HiveParser.TOK_REPLICATION);
  }
Tests if an ASTNode is a Replication Specification
ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSpec.java