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 ; }
Returns encoded bytes .