code: private boolean isNumeric(String value) {
  
          if (!CmsStringUtil.isEmpty(value)) {
              NumberFormat formatter = NumberFormat.getInstance();
              ParsePosition pos = new ParsePosition(0);
              formatter.parse(value, pos);
              return value.length() == pos.getIndex();
          } else {
              return false;
          }
      }
docs: Check if a string contains a numeric value.<p>
  
  @param value string to check if is a numeric value
  
  @return true for a numeric value in the string