code: @FFDCIgnore(IllegalStateException.class)
      public URL getBundleEntry(Bundle bundleToTest, String pathAndName) {
          try {
              URL bundleEntry = bundleToTest.getEntry(pathAndName);
  
              /*
               * Defect 54588 discovered that if a directory does not have a zip entry then calling getEntry will return null unless the path has a "/" on the end so if we have null
               * still then add a "/" on the end of the path and retest
               */
              if (bundleEntry == null) {
                  bundleEntry = bundleToTest.getEntry(pathAndName + "/");
              }
              return bundleEntry;
          } catch (IllegalStateException ise) {
              //bundle context was no longer valid, so we cannot use getEntry any more.
              return null;
          }
      }
docs: This method will return a bundle entry URL for the supplied path, it will test for both a normal entry and a directory entry for it.
  
  @param pathAndName The path to the entry
  @return The URL for the bundle entry