code: public static String getFilename(String path) {
          //The filename is after the last slash
          final int index = path != null ? path.lastIndexOf("/") : -1;
          if (index == -1) {
              IOException ioe = new IOException(TraceNLS.getFormattedMessage(FileTransferHelper.class,
                                                                             APIConstants.TRACE_BUNDLE_FILE_TRANSFER,
                                                                             "PATH_NOT_VALID",
                                                                             new String[] { path },
                                                                             "CWWKX0127E: The path " + path + " is not valid."));
              throw ErrorHelper.createRESTHandlerJsonException(ioe, null, APIConstants.STATUS_BAD_REQUEST);
          }
  
          return path.substring(index + 1);
      }
docs: Get the filename from a given path