if(profileauthproxy.getEndEntityProfileAuthorization(administrator, profiles.getEndEntityProfileId(profilenames[i]),EndEntityProfileAuthorizationProxy.EDIT_RIGHTS)){
if(profileauthproxy.getEndEntityProfileAuthorizationNoLog(administrator, profiles.getEndEntityProfileId(profilenames[i]),EndEntityProfileAuthorizationProxy.EDIT_RIGHTS)){
    public String[] getEditAuthorizedEndEntityProfileNames() throws RemoteException{      Vector result = new Vector();      String[] profilenames =  profiles.getEndEntityProfileNames();      String[] dummy = {};      for(int i =0; i< profilenames.length; i++){        if(profileauthproxy.getEndEntityProfileAuthorization(administrator, profiles.getEndEntityProfileId(profilenames[i]),EndEntityProfileAuthorizationProxy.EDIT_RIGHTS)){          result.add(profilenames[i]);        }      }      return (String[]) result.toArray(dummy);    }