throw new IllegalArgumentException("Fragment reference required");
}
FragmentReference fragmentReference = (FragmentReference)fragment;
// check for edit permission
fragmentReference.checkAccess(JetspeedActions.EDIT);
// update fragment reference in page manager
boolean update = false;
if (!refId.equals(fragmentReference.getRefId()))
{