code: public static String convertToBase64(String source) {
          if (source == null) {
              return null;
          }
          return Base64.encodeBase64URLSafeString(StringUtils.getBytesUtf8(source));
      }
docs: private static AtomicServiceReference<VirtualHost> virtualHostRef;