private int getNumberofDependenciesBetweenSoftwareUnits(String fromUnit, String toUnit) {
   analyseService = ServiceProvider.getInstance().getAnalyseService();
   DependencyDTO[] foundDependencies =
       analyseService.getDependenciesFromSoftwareUnitToSoftwareUnit(fromUnit, toUnit);
   int numberOfDependencies = foundDependencies.length;
   return numberOfDependencies;
 }
 private static AnalysisStatisticsDTO getAnalyseStatistics() {
   analyseService = ServiceProvider.getInstance().getAnalyseService();
   AnalysisStatisticsDTO statistics = analyseService.getAnalysisStatistics(null);
   logger.info(
       String.format(
           "Statistics - Packages: "
               + statistics.totalNrOfPackages
               + ", Classes: "
               + statistics.totalNrOfClasses
               + ", Dependencies: "
               + statistics.totalNrOfDependencies));
   return statistics;
 }
 private int getNumberofDependenciesBetweenModulesInIntendedArchitecture(
     String fromModule, String toModule) {
   analyseService = ServiceProvider.getInstance().getAnalyseService();
   IDefineService defineService = ServiceProvider.getInstance().getDefineService();
   HashSet<String> physicalFromClassPaths =
       defineService.getModule_AllPhysicalClassPathsOfModule(fromModule);
   HashSet<String> physicalToClassPaths =
       defineService.getModule_AllPhysicalClassPathsOfModule(toModule);
   ArrayList<DependencyDTO> allFoundDependencies = new ArrayList<DependencyDTO>();
   for (String fromPackages : physicalFromClassPaths) {
     for (String toPackages : physicalToClassPaths) {
       for (DependencyDTO dependency :
           analyseService.getDependenciesFromSoftwareUnitToSoftwareUnit(
               fromPackages, toPackages)) {
         allFoundDependencies.add(dependency);
       }
     }
   }
   int numberOfDependencies = allFoundDependencies.size();
   return numberOfDependencies;
 }
 private static void reconstructArchitecture() {
   analyseService = ServiceProvider.getInstance().getAnalyseService();
   analyseService.reconstructArchitecture();
 }