class CharSequenceCodec implements ICharSequenceCodec {

    @Override
    public String decode(@Nonnull final byte[] message) throws DecodingException {
        try {
            return decoder.decode(ByteBuffer.wrap(message)).toString();
        } catch (CharacterCodingException e) {
            throw new IllegalArgumentException("UTF-8 decoding has been failed because: " + e.getMessage(), e);
        }
    }

    private  CharSequenceCodec(final String name);

}