extract method adjustBorderProperties from writeRtfContent, primarily to satisfy checkstyle requirements for method size.