code: private void checkForConfigPath(File configFile) {
          String desktopLayoutFilePath = configFile.getAbsolutePath();
          String configDirPath = desktopLayoutFilePath.substring(0, desktopLayoutFilePath.lastIndexOf(System
                  .getProperty("file.separator")));
          File configDir = new File(configDirPath);
  
          // create config dir if it does not exist
          if (!configDir.exists()) {
              boolean success = configDir.mkdirs();
              if(success)
                  logger.debug("Newly created config directory");
              else
                  logger.warn("Could not create config directory");
          }
      }
docs: Creates the config directory, if it doesn't exist already
  
  @param configFile
  The file for which to create the path