Resource mapping and view resolver