code: void prepare() {
  
          if (getMeasures() == null || getMeasures().isEmpty())
              setMeasureObjects(Arrays.asList(HLAMeasure.values()));
          else
              setMeasureObjects(HLAMeasure.convert(getMeasures()));
  
          if (getUserName() != null && !getUserName().isEmpty())
              setExtractor(SonarHLAFactory.getExtractor(getHostUrl(), getUserName(), getPassword()));
          else
              setExtractor(SonarHLAFactory.getExtractor(getHostUrl()));
  
          setConverter(SonarHLAFactory.getConverterInstance());
  
          LOG.info("Initialized " + getMeasureObjects().size() + " measures.");
      }
docs: Prepare and initialize necessary internal values before actually accessing Sonar-HLA.