question: public static NodeVersion parse ( final String s ) { final Matcher matcher = VERSION_PATTERN . matcher ( s ) ; if ( ! matcher . matches ( ) ) { throw new IllegalArgumentException ( String . format ( "pattern '%s' could not be parsed" , s ) ) ; } return new NodeVersion ( Integer . parseInt ( matcher . group ( 1 ) ) , Integer . parseInt ( matcher . group ( 2 ) ) , Integer . parseInt ( matcher . group ( 3 ) ) , matcher . group ( 5 ) ) ; }
target:  Parses a string into a node version.