protected void calculateUpgradesDirectory(String stack, String service) {
    upgradesDir = resolveDirectory(UPGRADES_FOLDER_NAME, stack, service);
  }
Sets the upgradesDir if the dir exists and is not empty
@param stack
@param service
ambari-server/src/main/java/org/apache/ambari/server/stack/ServiceDirectory.java