IPerson_Function person_Function = (IPerson_Function) suportePersistente.getIPersistentObject() .readByOID(Person_Function.class, personFunctionID);
IPersonFunction person_Function = (IPersonFunction) suportePersistente.getIPersistentObject() .readByOID(PersonFunction.class, personFunctionID);
    public void run(Integer personFunctionID, Integer functionID, Date beginDate, Date endDate,            Integer credits) throws ExcepcaoPersistencia, FenixServiceException {        ISuportePersistente suportePersistente = PersistenceSupportFactory                .getDefaultPersistenceSupport();        IPerson_Function person_Function = (IPerson_Function) suportePersistente.getIPersistentObject()                .readByOID(Person_Function.class, personFunctionID);        if (person_Function == null) {            throw new FenixServiceException("error.no.personFunction");        }        IFunction function = (IFunction) suportePersistente.getIPersistentObject().readByOID(                Function.class, functionID);        if (function == null) {            throw new FenixServiceException("erro.noFunction");        }        person_Function.edit(function, beginDate, endDate, credits);    }