// Create new instance of DivAttributes
DivAttributes divAttributes = new DivAttributes();
// If source attributes are specified, copy all attribute values.
if (sourceAttributes != null) {
divAttributes.copy(sourceAttributes);
}
// If styles are not specified, create new inherited styles.
if (divAttributes.getStyles() == null) {
Styles styles = StylingFactory.getDefaultInstance()