code: public VariantStudyMetadata getVariantStudyMetadata(String studyId) {
          if (studyId != null) {
              if (variantMetadata.getStudies() == null) {
                  variantMetadata.setStudies(new ArrayList<>());
              }
              for (VariantStudyMetadata study : variantMetadata.getStudies()) {
                  if (studyId.equals(study.getId())) {
                      return study;
                  }
              }
          } else {
              logger.error("Study ID is null");
          }
          return null;
      }
docs: Retrieve the variant study metadata from its study ID.
  
  @param studyId Study ID
  @return        VariantStudyMetadata object