} else
newNode = getLayoutNode(newNodeId);
ALNode parentNode = getLayoutNode(parentId);
if ( !(parentNode.getNodeType()==IUserLayoutNodeDescription.FOLDER ) )
throw new PortalException ("The target parent node should be a folder!");
<BUG>if ( checkRestriction(parentNode,RestrictionTypes.IMMUTABLE_RESTRICTION,"false") ) {
</BUG>
Vector restrictions = parentNode.getRestrictionsByPath("children");
for ( int i = 0; i < restrictions.size(); i++ ) {
IUserLayoutRestriction restriction = (IUserLayoutRestriction)restrictions.get(i);

} else
newNode = getLayoutNode(newNodeId);
ALNode parentNode = getLayoutNode(parentId);
if ( !(parentNode.getNodeType()==IUserLayoutNodeDescription.FOLDER ) )
throw new PortalException ("The target parent node should be a folder!");
if ( !checkRestriction(parentNode,RestrictionTypes.IMMUTABLE_RESTRICTION,"true") ) {
Vector restrictions = parentNode.getRestrictionsByPath("children");
for ( int i = 0; i < restrictions.size(); i++ ) {
IUserLayoutRestriction restriction = (IUserLayoutRestriction)restrictions.get(i);
