code: private String getFileName(String name) {
          //check if the environment is linux or windows
          if (name.contains(Constants.FORWARD_SLASH)) {
              name = name.substring(name.lastIndexOf(Constants.FORWARD_SLASH) + 1, name.length());
          } else if (name.contains(Constants.BACK_SLASH)) {
              name = name.substring(name.lastIndexOf(Constants.BACK_SLASH) + 1, name.length());
          }
          return name;
      }
docs: parse name without directories