code: public Integer getArraySizeAsInt() {
      if (this.arraySize == null) {
        throw new NullPointerException("Array size is not defined");
      }
      try {
        return Integer.valueOf(this.arraySize.trim());
      } catch (NumberFormatException ex) {
        return null;
      }
    }
docs: Get numeric representation of the array size.
  
  @return the parsed numeric representation of the array size value or null if it can't be parsed
  @throws NullPointerException will be thrown if the array size value is null