public static void storeStatusUpdateTemplateNode ( final AbstractGraphDatabase graphDatabase , final String templateId , final Node templateNode , final Node previousTemplateNode ) { // remove node of the latest previous template version if ( previousTemplateNode != null ) { INDEX_STATUS_UPDATE_TEMPLATES . remove ( previousTemplateNode , IDENTIFIER , templateId ) ; } // add the new template node INDEX_STATUS_UPDATE_TEMPLATES . add ( templateNode , IDENTIFIER , templateId ) ; }
store a status update template node in the index replacing previous occurrences