private boolean isInitialized(){
  return poolNames != null && !poolNames.isEmpty();
}

private boolean isInitialized ( ) { return poolNames != null && ! poolNames . isEmpty ( ) ; }
checks if is initialized .
