protected String calcLoadPercent(LocalTransaction localTransaction) { ApplicationVersion applicationVersion = applicationVersionManager.getAidAndVersionNo( localTransaction.getAid(), localTransaction.getAppVersion()); int totalCount = applicationVersion.getApplicationLoadFiles().size(); int currentIndex = localTransaction.getCurrentLoadFileIndex(); Integer percent = 5 + (int) (((new Double(currentIndex - 1) / totalCount) * 0.85) * 100); return percent.toString(); }