code: private TypeUtils.Pair<String, String> validateDatasetNameExists(String datasetName) throws AtlasException {
          Iterator<AtlasVertex> results = graph.query().has("Referenceable.qualifiedName", datasetName)
                                               .has(Constants.STATE_PROPERTY_KEY, Id.EntityState.ACTIVE.name())
                                               .has(Constants.SUPER_TYPES_PROPERTY_KEY, AtlasClient.DATA_SET_SUPER_TYPE)
                                               .vertices().iterator();
          while (results.hasNext()) {
              AtlasVertex vertex = results.next();
              return TypeUtils.Pair.of(GraphHelper.getTypeName(vertex), GraphHelper.getGuid(vertex));
          }
          throw new EntityNotFoundException("Dataset with name = " + datasetName + " does not exist");
      }
docs: Validate if indeed this is a table type and exists.
  
  @param datasetName table name