if (moduleAnalysis instanceof RecursiveModuleAnalysis) {
customPackageIdentifier = createTemporaryPackageForRetrievedSource((RecursiveModuleAnalysis) moduleAnalysis);
}
if (customPackageIdentifier != null) {
response = new ExplicitModuleFormatAnalysisDependenciesResponse(moduleAnalysis,
customPackageIdentifier, ModuleFormat.NON_AMD);
} else {
response = new ExplicitModuleFormatAnalysisDependenciesResponse(moduleAnalysis, ModuleFormat.NON_AMD);
}
encodedJson = JsonUtil.writeJavaToHtmlEncodedJson(response);
} catch (FatalAnalysisError e) {
logger.log(Level.SEVERE, String.format(errorGeneratingJsonLogMsg, inputType.name(), inputValue));