code: private Integer parsePositiveNumber(CmsXmlContentValueLocation loc) {
  
          if (loc == null) {
              return null;
          }
          try {
              Integer result = Integer.valueOf(loc.getValue().getStringValue(m_cms).trim());
              if (result.intValue() < 0) {
                  return null;
              } else {
                  return result;
              }
          } catch (Exception e) {
              LOG.info(e.getLocalizedMessage(), e);
              return null;
          }
      }
docs: Parses a positive integer.<p>
  
  @param loc the location of the positive number
  @return the number, or null if it could not be parsed