class Base64Utils {

  public static String encode(final byte[] raw) {
    if (null == raw || raw.length == 0) {
      return StringUtils.EMPTY_STRING;
    }
    return BaseEncoding.base64().encode(raw);
  }

}