Check before applying background bitmap.
Remove DocumentSetting class.
Code adjustments and Javadocs.