public Object encode(Object object) throws EncoderException { try { byte[] byteArray = object instanceof String ? ((String) object).getBytes() : (byte[]) object; return encodeHex(byteArray); } catch (ClassCastException e) { throw new EncoderException(e.getMessage()); }
public byte[] encode(byte[] array) { return new String(encodeHex(array)).getBytes();
	public Object encode(Object object) throws EncoderException {			try {            byte[] byteArray = object instanceof String ? ((String) object).getBytes() : (byte[]) object;			return encodeHex(byteArray);		} catch (ClassCastException e) {			throw new EncoderException(e.getMessage());		}	}