public RespokeConnection getConnection ( String connectionID , boolean skipCreate ) { RespokeConnection connection = null ; for ( RespokeConnection eachConnection : connections ) { if ( eachConnection . connectionID . equals ( connectionID ) ) { connection = eachConnection ; break ; } } if ( ( null == connection ) && ! skipCreate ) { connection = new RespokeConnection ( connectionID , this ) ; connections . add ( connection ) ; } return connection ; }
Returns a connection with the specified ID and optionally creates one if it does not exist