class HessianEncoder implements Encoder {
    public static final HessianEncoder instance = new HessianEncoder();

    @Override
    public String enctype() {
        return ContentTypes.HESSIAN_VALUE;
    }

    @Override
    public byte[] encode(Object obj) {<FILL_FUNCTION_BODY>}

    @Override
    public void pretreatment(Context ctx) {

    }
}

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        Hessian2Output ho = new Hessian2Output(out);

        try {
            ho.writeObject(obj);
            ho.close();
        } catch (RuntimeException ex) {
            throw ex;
        } catch (Throwable ex) {
            throw new RuntimeException(ex);
        }

        return out.toByteArray();
    
<no_super_class>