protected static boolean createDirectory(final String path){
  File dir=new File(path);
  try {
    boolean dirCreated=dir.mkdirs();
    return dirCreated;
  }
 catch (  SecurityException e) {
    LOGGER.error("Directory creation . Cannot create the specified directory !\n" + "Specified directory path (absolute): " + dir.getAbsolutePath(),e);
    throw new IllegalStateException("The directory (-" + path + ")  you specified cannot be written to:",e);
  }
}

protected static boolean createDirectory ( final String path ) { File dir = new File ( path ) ; try { boolean dirCreated = dir . mkdirs ( ) ; return dirCreated ; } catch ( SecurityException e ) { LOGGER . error ( "Directory creation . Cannot create the specified directory !\n" + "Specified directory path (absolute): " + dir . getAbsolutePath ( ) , e ) ; throw new IllegalStateException ( "The directory (-" + path + ")  you specified cannot be written to:" , e ) ; } }
create any directory / directories required in the supplied path
