public static void validateConfAndURI(DistributedLogConfiguration conf,URI uri) throws IllegalArgumentException {
  if (null == conf) {
    throw new IllegalArgumentException("Incorrect Configuration");
  }
 else {
    conf.validate();
  }
  if ((null == uri) || (null == uri.getAuthority()) || (null == uri.getPath())) {
    throw new IllegalArgumentException("Incorrect ZK URI");
  }
}

public static void validateConfAndURI ( DistributedLogConfiguration conf , URI uri ) throws IllegalArgumentException { if ( null == conf ) { throw new IllegalArgumentException ( "Incorrect Configuration" ) ; } else { conf . validate ( ) ; } if ( ( null == uri ) || ( null == uri . getAuthority ( ) ) || ( null == uri . getPath ( ) ) ) { throw new IllegalArgumentException ( "Incorrect ZK URI" ) ; } }
validate the configuration and uri .
