public PoolInfo getPoolInfo ( ) { String poolNameProperty = get ( IMPLICIT_POOL_PROPERTY , "user.name" ) ; String explicitPool = get ( EXPLICIT_POOL_PROPERTY , get ( poolNameProperty , "" ) ) . trim ( ) ; String [ ] poolInfoSplitString = explicitPool . split ( "[.]" ) ; if ( poolInfoSplitString != null && poolInfoSplitString . length == 2 ) { return new PoolInfo ( poolInfoSplitString [ 0 ] , poolInfoSplitString [ 1 ] ) ; } else if ( ! explicitPool . isEmpty ( ) ) { return new PoolInfo ( PoolGroupManager . DEFAULT_POOL_GROUP , explicitPool ) ; } else { return PoolGroupManager . DEFAULT_POOL_INFO ; } }
Get the pool info . In order to support previous behavior a single pool name is accepted .