class StatefulService implements Service {

    protected <T extends ServiceDocument> T getBody(Operation op) {
        @SuppressWarnings("unchecked")
        T body = (T) op.getBody(this.context.stateType);
        return body;
    }

    public  StatefulService(Class<? extends ServiceDocument> stateType);

}