code: boolean checkSource(PathImpl sourceDir, String javaName)
    {
      try {
        while (javaName != null && ! javaName.equals("")) {
          int p = javaName.indexOf('/');
          String head;
        
          if (p >= 0) {
            head = javaName.substring(0, p);
            javaName = javaName.substring(p + 1);
          }
          else {
            head = javaName;
            javaName = null;
          }
  
          String []names = sourceDir.list();
          int i;
          for (i = 0; i < names.length; i++) {
            if (names[i].equals(head))
              break;
          }
  
          if (i == names.length)
            return false;
  
          sourceDir = sourceDir.lookup(head);
        }
      } catch (IOException e) {
        log.log(Level.FINE, e.toString(), e);
        
        return false;
      }
  
      return true;
    }
docs: Checks that the case is okay for the source.