code: private static void storeStatusUpdateTemplate(
  			final AbstractGraphDatabase graphDatabase,
  			final StatusUpdateTemplate template, final Node previousTemplateNode) {
  		final Transaction transaction = graphDatabase.beginTx();
  		try {
  			// create template node
  			final Node templateNode = StatusUpdateTemplate.createTemplateNode(
  					graphDatabase, template);
  
  			// link to the latest previous version
  			if (previousTemplateNode != null) {
  				templateNode.createRelationshipTo(previousTemplateNode,
  						SocialGraphRelationshipType.Templates.PREVIOUS);
  			}
  
  			// store the template node
  			NeoUtils.storeStatusUpdateTemplateNode(graphDatabase,
  					template.getName(), templateNode, previousTemplateNode);
  
  			transaction.success();
  		} finally {
  			transaction.finish();
  		}
  	}
docs: store the status update template linking to the latest previous version
  
  @param graphDatabase
  social graph database to store the template in
  @param template
  status update template
  @param previousTemplateNode
  template node of the latest previous version