@Override
public void execute(AdminCommandContext context) {
ActionReport report = context.getActionReport();
report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
WebServicesContainer container = habitat.getComponent(WebServicesContainer.class);
if (container == null) {
return;
}
WebServicesDeploymentMBean bean = container.getDeploymentBean();
if (appName != null && moduleName != null && endpointName != null) {
Map<String, Map<String, Map<String, DeployedEndpointData>>> endpoints =
bean.getEndpoint(appName, moduleName, endpointName);
fillEndpoints(report, endpoints);