define ApplicationsAdapter in single file