code: public Optional<Tag> getOptionalTag(Object projectIdOrPath, String tagName) throws GitLabApiException {
          try {
              return (Optional.ofNullable(getTag(projectIdOrPath, tagName)));
          } catch (GitLabApiException glae) {
              return (GitLabApi.createOptionalFromException(glae));
          }
      }
docs: Get an Optional instance holding a Tag instance of a specific repository tag determined by its name.
  
  <pre><code>GitLab Endpoint: GET /projects/:id/repository/tags/:tagName</code></pre>
  
  @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
  @param tagName the name of the tag to fetch the info for
  @return an Optional instance with the specified project tag as the value
  @throws GitLabApiException if any exception occurs