public static ConnectionParams fromConfig ( ConfigParams config , boolean configAsDefault ) { List < ConnectionParams > connections = manyFromConfig ( config , configAsDefault ) ; return connections . size ( ) > 0 ? connections . get ( 0 ) : null ; }
Retrieves a single ConnectionParams from configuration parameters from connection section . If connections section is present instead then is returns only the first connection element .