public Object getValue ( ) { try { String text = getAsText ( ) ; if ( text == null ) { return null ; } if ( text . startsWith ( "/" ) ) { // seems like localhost sometimes will look like: // /127.0.0.1 and the getByNames barfs on the slash - JGH text = text . substring ( 1 ) ; } return InetAddress . getByName ( StringPropertyReplacer . replaceProperties ( text ) ) ; } catch ( UnknownHostException e ) { throw new NestedRuntimeException ( e ) ; } }
Returns a InetAddress for the input object converted to a string .