code: byte[] getEncodedBytes(final String name)
      {
          try
          {
              if (name != null)
              {
                  return name.getBytes(Constants.CHARSET_UTF8);
              }
          }
          catch (UnsupportedEncodingException e)
          {
              logger.error("Error during persist, Caused by:", e);
              throw new PersistenceException(e);
          }
  
          return null;
      }
docs: Returns encoded bytes.
  
  @param name
  field name.
  @return encoded byte array.