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