code: @Sensitive
      public static byte[] getByteArrayPassword(@Sensitive String password) throws WIMSystemException {
          String METHODNAME = "getByteArrayPassword";
          try {
              if (password != null) {
                  return password.getBytes("UTF-8");
              } else {
                  return null;
              }
          } catch (java.io.UnsupportedEncodingException e) {
              if (tc.isErrorEnabled()) {
                  Tr.error(tc, WIMMessageKey.GENERIC, WIMMessageHelper.generateMsgParms(e.toString()));
              }
              throw new WIMSystemException(WIMMessageKey.GENERIC, Tr.formatMessage(
                                                                                   tc,
                                                                                   WIMMessageKey.GENERIC,
                                                                                   WIMMessageHelper.generateMsgParms(e.toString())));
          }
      }
docs: Gets the byte array of the given password from using UTF-8 encoding.
  
  @param password the string of the password to encode.
  @return the byte array representation of the text string