ModuleStateHolder moduleStateHolder = application.getModuleStateHolder();
RootModuleDefinition oldRootDefinition = moduleStateHolder.cloneRootModuleDefinition();
RootModuleDefinition newRootDefinition = moduleStateHolder.cloneRootModuleDefinition();
ModificationExtractorRegistry modificationExtractor = getModificationExtractorRegistry();
ModificationExtractor calculator = modificationExtractor
.getModificationExtractor(ModificationExtractorType.STRICT);
ModuleDefinition childDefinition = newRootDefinition.findChildDefinition(moduleToReload, true);
super.isReloadPermitted(childDefinition);
if (childDefinition != null) {
childDefinition.setState(ModuleState.STALE);
TransitionSet transitions = calculator.getTransitions(application, oldRootDefinition, newRootDefinition);
TransitionResultSet transitionResultSet = getTransitionManager().processTransitions(moduleStateHolder, application, transitions);
boolean result = !transitions.getModuleTransitions().isEmpty();
return result ? new ModuleOperationResult(transitionResultSet) : ModuleOperationResult.EMPTY;
}