public static String derivePath(String fileName){
  Properties props=deriveDirectories();
  String baseDir=(String)props.get(GS_HOME);
  Logger logger=Logger.getLogger(COMPONENT);
  if (logger.isLoggable(Level.FINE))   logger.log(Level.FINE,"Derive path for file: " + fileName + " | locations: "+ props.toString());
  return (derivePath(baseDir,fileName));
}

public static String derivePath ( String fileName ) { Properties props = deriveDirectories ( ) ; String baseDir = ( String ) props . get ( GS_HOME ) ; Logger logger = Logger . getLogger ( COMPONENT ) ; if ( logger . isLoggable ( Level . FINE ) ) logger . log ( Level . FINE , "Derive path for file: " + fileName + " | locations: " + props . toString ( ) ) ; return ( derivePath ( baseDir , fileName ) ) ; }
derive the location of a file or subdirectory , starting from the gigaspaces base directory and scanning sub - directories .
