private static void logNodeProperties(org.osgi.service.prefs.Preferences node){
  if (node == null) {
    return;
  }
  try {
    LOG.info(node.name() + " properties: ");
    logProperties(node);
    String[] childrenNames=node.childrenNames();
    for (int i=0; i < childrenNames.length; i++) {
      logNodeProperties(node.node(childrenNames[i]));
    }
  }
 catch (  Exception t) {
    LOG.error("Error while logging preferences.",t);
  }
}

private static void logNodeProperties ( org . osgi . service . prefs . Preferences node ) { if ( node == null ) { return ; } try { LOG . info ( node . name ( ) + " properties: " ) ; logProperties ( node ) ; String [ ] childrenNames = node . childrenNames ( ) ; for ( int i = 0 ; i < childrenNames . length ; i ++ ) { logNodeProperties ( node . node ( childrenNames [ i ] ) ) ; } } catch ( Exception t ) { LOG . error ( "Error while logging preferences." , t ) ; } }
logs all properties of a preference node and calls lognodeproperties for all children of this node .
