Person person = (Person) persistentObject.readByOID(Person.class, personId); List<Person> persons = Party.readAllPersons(); person.changeUsername(newUsername, persons);
Person person = (Person) persistentObject.readByOID(Person.class, personId); person.changeUsername(newUsername);
    public void run(String newUsername, Integer personId) throws ExcepcaoPersistencia {        Person person = (Person) persistentObject.readByOID(Person.class, personId);        List<Person> persons = Party.readAllPersons();               person.changeUsername(newUsername, persons);    }