ModuleOperation operation = moduleOperationRegistry.getOperation(ModuleOperationConstants.ReloadModuleNamedLikeOperation);
try {
Application application = applicationManager.getCurrentApplication();
ModuleOperationResult execute = operation.execute(application, new ModuleOperationInput(null, null, moduleName));
TransitionResultSet transitionResultSet = execute.getTransitionResultSet();
if (transitionResultSet.hasResults()) {
if (transitionResultSet.isSuccess()) {
return "Successfully reloaded " + execute.getOutputParameters().get("moduleName");
} else {
Throwable error = transitionResultSet.getFirstError();
return "One or more module operations failed: " + (error != null ? error.getMessage() : "error is null");
}
} else {