Sentence:  It was possibly chagrin at this neglect that caused James to omit the most ordinary courtesies to the few gentlemen who had behaved <WSD>seemingly</WSD>:.... 
Meaning of the word marked with <WSD> tags:  In a seemly manner; decorously; with propriety.