code: private final void loadFileId(final ToolContext context) {
          final Integer lastDot;       // Location of the extension dot
          final Object currentFileObj; // File's name as received
          String currentFile;          // File's name
  
          if (context.containsKey(ConfigToolConstants.CURRENT_FILE_NAME_KEY)) {
              currentFileObj = context
                      .get(ConfigToolConstants.CURRENT_FILE_NAME_KEY);
              if (currentFileObj == null) {
                  setFileId("");
              } else {
                  currentFile = String.valueOf(currentFileObj);
  
                  // Drops the extension
                  lastDot = currentFile.lastIndexOf('.');
                  if (lastDot >= 0) {
                      currentFile = currentFile.substring(0, lastDot);
                  }
  
                  // File name is slugged
                  setFileId(slug(currentFile));
              }
          } else {
              setFileId("");
          }
      }
docs: Loads the file identifier from the velocity tools context.
  <p>
  This is generated from the file's name.
  
  @param context
  the Velocity tools context