protected static String formatApiVersion ( String version ) { if ( StringUtils . isBlank ( version ) ) { return VERSION ; } else { final Matcher matcher = VERSION_PATTERN . matcher ( version ) ; if ( matcher . matches ( ) ) { return String . format ( "%s.%s" , matcher . group ( 1 ) , matcher . group ( 2 ) ) ; } else { return VERSION ; } } }
Build a proper api version