This method of the PermissionDataSet Class turns the PermissionDataSet into a PermissionSet. The PermissionSet form is immutable and can no longer be modified.
public synchronized PermissionSet toPermissionSet();
Returns the PermissionSet object that is an immutable form of the PermissionDataSet object.