store = s;
}
}
if ( store == null )
{
throw new ProviderNotConfiguredException(
"Could not find configuration for provider '"
+ providerToken + "'." );
}
AdapterConfig adapter = null;
for ( AdapterConfig a : factory.getAvailableAdapterConfigs( ) )
{
if ( a.getAdapterName( ).equalsIgnoreCase( store.getAdapter( ) ) )
{
adapter = a;
}
}
if ( adapter == null )
{
throw new ProviderNotConfiguredException(
"Could not find configuration for adapter '"
+ store.getAdapter( ) + "' specified for provider + '"
+ store.getName( ) + "'." );
}