class IsleEndpoint {

    private final ApplicationRuntimeModel applicationRuntimeModel;

    public IsleEndpoint(ApplicationRuntimeModel applicationRuntimeModel) {
        this.applicationRuntimeModel = applicationRuntimeModel;
    }

    @ReadOperation
    public IsleDescriptor modules() {
        // already installed modules
        List<ModuleDisplayInfo> installedModuleList = convertModuleDisplayInfoList(applicationRuntimeModel
            .getInstalled());

        List<ModuleDisplayInfo> failedModuleList = convertModuleDisplayInfoList(applicationRuntimeModel
            .getFailed());

        List<ModuleDisplayInfo> inactiveModuleList = convertModuleDisplayInfoList(applicationRuntimeModel
            .getAllInactiveDeployments());

        return new IsleDescriptor(installedModuleList, failedModuleList, inactiveModuleList);
    }

    private List<ModuleDisplayInfo> convertModuleDisplayInfoList(List<DeploymentDescriptor> deploymentDescriptors) {
        return deploymentDescriptors.stream().map(this::createBaseModuleInfo).collect(Collectors.toList());
    }

    private ModuleDisplayInfo createBaseModuleInfo(DeploymentDescriptor dd) {<FILL_FUNCTION_BODY>}

    public static final class IsleDescriptor implements OperationResponseBody {

        /** 刷新成功的模块 **/
        private final List<ModuleDisplayInfo> installedModuleList;

        /** 创建失败的模块 **/
        private final List<ModuleDisplayInfo> failedModuleList;

        /** 未激活的模块 **/

        private final List<ModuleDisplayInfo> inactiveModuleList;

        public IsleDescriptor(List<ModuleDisplayInfo> installedModuleList,
                              List<ModuleDisplayInfo> failedModuleList,
                              List<ModuleDisplayInfo> inactiveModuleList) {
            this.installedModuleList = installedModuleList;
            this.failedModuleList = failedModuleList;
            this.inactiveModuleList = inactiveModuleList;
        }

        public List<ModuleDisplayInfo> getInstalledModuleList() {
            return installedModuleList;
        }

        public List<ModuleDisplayInfo> getFailedModuleList() {
            return failedModuleList;
        }

        public List<ModuleDisplayInfo> getInactiveModuleList() {
            return inactiveModuleList;
        }
    }

    public static final class ModuleDisplayInfo {

        private String       name;

        private String       springParent;

        private List<String> requireModules;

        private String       resourceName;

        private long         startupTime;

        private long         elapsedTime;

        private List<String> installSpringXmls;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSpringParent() {
            return springParent;
        }

        public void setSpringParent(String springParent) {
            this.springParent = springParent;
        }

        public List<String> getRequireModules() {
            return requireModules;
        }

        public void setRequireModules(List<String> requireModules) {
            this.requireModules = requireModules;
        }

        public String getResourceName() {
            return resourceName;
        }

        public void setResourceName(String resourceName) {
            this.resourceName = resourceName;
        }

        public List<String> getInstallSpringXmls() {
            return installSpringXmls;
        }

        public void setInstallSpringXmls(List<String> installSpringXmls) {
            this.installSpringXmls = installSpringXmls;
        }

        public long getStartupTime() {
            return startupTime;
        }

        public void setStartupTime(long startupTime) {
            this.startupTime = startupTime;
        }

        public long getElapsedTime() {
            return elapsedTime;
        }

        public void setElapsedTime(long elapsedTime) {
            this.elapsedTime = elapsedTime;
        }
    }
}

        ModuleDisplayInfo moduleDisplayInfo = new ModuleDisplayInfo();
        moduleDisplayInfo.setName(dd.getModuleName());
        moduleDisplayInfo.setResourceName(dd.getName());
        moduleDisplayInfo.setSpringParent(dd.getSpringParent());
        moduleDisplayInfo.setRequireModules(dd.getRequiredModules());

        ApplicationContext applicationContext = dd.getApplicationContext();
        if (applicationContext != null) {
            moduleDisplayInfo.setInstallSpringXmls(dd.getInstalledSpringXml());
            moduleDisplayInfo.setElapsedTime(dd.getElapsedTime());
            moduleDisplayInfo.setStartupTime(dd.getStartTime());
        }
        return moduleDisplayInfo;
    
<no_super_class>