Iterator permissionLimitsIterator = permissionLimits.iterator(); while (permissionLimitsIterator.hasNext()) { LimitImpl limitImpl = (LimitImpl)(permissionLimitsIterator.next()); if (this.getSignet() != null) { limitImpl.setSignet(this.getSignet()); } }
  public Limit[] getLimitsArray()  {    Set functionLimits = new HashSet();    Set permissions = this.getPermissions();    Iterator permissionsIterator = permissions.iterator();        while (permissionsIterator.hasNext())    {      Permission permission = (Permission)(permissionsIterator.next());      Set permissionLimits = ((PermissionImpl)permission).getLimits();      functionLimits.addAll(permissionLimits);    }    Limit[] limitsArray = new Limit[0];    return (Limit[])(functionLimits.toArray(limitsArray));  }