class ServletRestServer implements RestServer {
    private static ResteasyDeployment deployment;

    public static void setResteasyDeployment(ResteasyDeployment deployment) {
        ServletRestServer.deployment = deployment;
    }

    public void checkEnv() {<FILL_FUNCTION_BODY>}

    @Override
    public void start() {
    }

    @Override
    public ResteasyDeployment getDeployment() {
        return deployment;
    }

    @Override
    public void stop() {
    }

}

        if (deployment == null) {
            throw new MotanFrameworkException("please config <listener-class>"
                    + RestfulServletContainerListener.class.getName() + "</listener-class> in your web.xml file");
        }
    
<no_super_class>