code: private String parsePackageName(String pkgname) {
          int index = -1;
          for (int j = 0; j < MAX_CONSTANT_VALUE_INDEX_LENGTH; j++) {
              index = pkgname.indexOf(".", index + 1);
          }
          if (index != -1) {
              pkgname = pkgname.substring(0, index);
          }
          return pkgname;
      }
docs: Parse the package name.  We only want to display package name up to
  2 levels.