* @param db The Neo4j graph database service.
* @return Returns a Neo4j node entity that contains the root pattern for performing hierarchical pattern recognition from.
*/
private static Node getRootPatternNode(GraphDatabaseService db) {
Node patternNode;
patternNode = new NodeManager().getOrCreateNode(GRAPH_MANAGER, GraphManager.ROOT_TEMPLATE, db);
if(!patternNode.hasProperty("matches")) {
patternNode.setProperty("matches", 0);
patternNode.setProperty("threshold", GraphManager.MIN_THRESHOLD);
patternNode.setProperty("root", 1);
patternNode.setProperty("phrase", "{0} {1}");