protected void calculatePackageDirectory(String stack, String service) {
    packageDir = resolveRelativeDirectoryPathString(getResourcesDirectory(), PACKAGE_FOLDER_NAME, stack, service);

  }
Sets the packageDir if the path exists and is not empty
@param stack
@param service
ambari-server/src/main/java/org/apache/ambari/server/stack/ServiceDirectory.java