layoutSetBranchId, layout.getPlid(), serviceContext);
if (!MergeLayoutPrototypesThreadLocal.isInProgress()) {
serviceContext.setWorkflowAction(
WorkflowConstants.ACTION_SAVE_DRAFT);
}
<BUG>return LayoutRevisionLocalServiceUtil.addLayoutRevision(
</BUG>
serviceContext.getUserId(), layoutSetBranchId,
layoutBranch.getLayoutBranchId(),
LayoutRevisionConstants.DEFAULT_PARENT_LAYOUT_REVISION_ID, false,

layoutSetBranchId, layout.getPlid(), serviceContext);
if (!MergeLayoutPrototypesThreadLocal.isInProgress()) {
serviceContext.setWorkflowAction(
WorkflowConstants.ACTION_SAVE_DRAFT);
}
layoutRevision = LayoutRevisionLocalServiceUtil.addLayoutRevision(
serviceContext.getUserId(), layoutSetBranchId,
layoutBranch.getLayoutBranchId(),
LayoutRevisionConstants.DEFAULT_PARENT_LAYOUT_REVISION_ID, false,
