public boolean isValidLockdownProfile(){
  try {
    return true;
  }
 catch (  IllegalArgumentException e) {
    Log.w(TAG,"Invalid address",e);
    return false;
  }
}

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