code: public static void httpComponentWithTry(HttpPut request, String auth) {
          auth = auth + "password";
          try {
              // this will probably be tagged with
              // CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET, if compiled under JDK 7
              // or later
              request.addHeader("Authorization", Base64.encodeBase64String(auth.getBytes("UTF-8")));
          } catch (UnsupportedEncodingException e) {
              e.printStackTrace();
          }
      }
docs: tag OCP request -> HTTPMessage