question: private boolean validateIpRangeSet ( Set ipSet ) throws PolicyException { Iterator ipRanges = ipSet . iterator ( ) ; while ( ipRanges . hasNext ( ) ) { String ipRange = ( String ) ipRanges . next ( ) ; StringTokenizer st = new StringTokenizer ( ipRange , "-" ) ; int tokenCount = st . countTokens ( ) ; if ( tokenCount > 2 ) { String args [ ] = { IP_RANGE , ipRange } ; throw new PolicyException ( ResBundleUtils . rbName , "invalid_property_value" , args , null ) ; } String startIp = st . nextToken ( ) ; String endIp = startIp ; if ( tokenCount == 2 ) { endIp = st . nextToken ( ) ; } ipList . add ( new Long ( stringToIp ( startIp ) ) ) ; ipList . add ( new Long ( stringToIp ( endIp ) ) ) ; } return true ; }
target:  validates if the value of property IP_RANGE is correct and adheres to the expected format