question: public boolean isValidLockdownProfile ( ) { try { return true ; } catch ( IllegalArgumentException e ) { Log . w ( TAG , "Invalid address" , e ) ; return false ; } }
target:  Test if profile is valid for lockdown, which requires IPv4 address for both server and DNS. Server hostnames would require using DNS before connection.