int autoStylesCount = autoStyles.getLength();
OdfStylePageLayout pageLayout = autoStyles.getPageLayout(stylePageLayoutName);
if(pageLayout != null) {
// Clone the OdfStylePageLayout if another master style possesses the same name before modifying its properties
if(pageLayoutNameCount > 1){
Node pageLayoutNew = pageLayout.cloneNode(true);
// Rename the style of the clone before modifying its properties
String oldPageLayoutName = pageLayout.getStyleNameAttribute();
pageLayout.setStyleNameAttribute("Mpm" + (autoStylesCount+1));
// Allocate the new name of the style to the master style (the cloned style)
if (list.getLength() > 0) {