class MockedAdapterSetupService {

	public <A extends AdapterContext<C>, C extends AdapterConfig> MockedAdapterSetupEntry getSetupFor(AbstractMockedAdapter<A, C> adapter, C config) {
		boolean configuredResult = config.getOptions().get(AdapterOptionKey.MOCK_CONFIGURATION_RESULT)!=null;
		
		if (configuredResult) {
			return createDynamicResultByAdapter(adapter,config);
		}
		return createStaticResultByTargets(adapter);

	}

}