code: private int getMaxElements(String requestUri) {
  
          String containerMaxElements = getMaxElements();
  
          int maxElements = -1;
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(containerMaxElements)) {
              try {
                  maxElements = Integer.parseInt(containerMaxElements);
              } catch (NumberFormatException e) {
                  throw new CmsIllegalStateException(
                      Messages.get().container(
                          Messages.LOG_WRONG_CONTAINER_MAXELEMENTS_3,
                          new Object[] {requestUri, getName(), containerMaxElements}),
                      e);
              }
          } else {
              if (LOG.isWarnEnabled()) {
                  LOG.warn(
                      Messages.get().getBundle().key(
                          Messages.LOG_MAXELEMENTS_NOT_SET_2,
                          new Object[] {getName(), requestUri}));
              }
          }
          return maxElements;
      }
docs: Parses the maximum element number from the current container and returns the resulting number.<p>
  
  @param requestUri the requested URI
  
  @return the maximum number of elements of the container