code: public int getLimitPartIndex(int start) {
          int limit=parts.get(start).limitPartIndex;
          if(limit<start) {
              return start;
          }
          return limit;
      }
docs: Returns the index of the ARG|MSG_LIMIT part corresponding to the ARG|MSG_START at start.
  @param start The index of some Part data (0..countParts()-1);
  this Part should be of Type ARG_START or MSG_START.
  @return The first i&gt;start where getPart(i).getType()==ARG|MSG_LIMIT at the same nesting level,
  or start itself if getPartType(msgStart)!=ARG|MSG_START.
  @throws IndexOutOfBoundsException if start is outside the (0..countParts()-1) range