//
//TODO: JS2-1259: BaseElementImpl doesn't consider null input; DBPM based security constraints update needs to be more tested.
// For now, set an empty one instead of null to avoid this problem as well as possible side effects.
//
//fragment.setSecurityConstraints(null);
fragment.setSecurityConstraints(fragment.newSecurityConstraints());
if ((constraints != null) && !constraints.isEmpty())
{
SecurityConstraints fragmentConstraints = fragment.newSecurityConstraints();
String constraintsOwner = constraints.getOwner();