Added 'format' parameter in AdapterFactory