String user = (String) hashMap.get("user"); IStudent student = persistentStudent.readByUsername(user); IDelegate delegate = persistentDelegate.readByStudent(student);
final String user = (String) hashMap.get("user"); final IStudent student = persistentStudent.readByUsername(user); final IDelegate delegate = persistentDelegate.readByStudent(student);
    public InfoDelegate run(HashMap hashMap) throws FenixServiceException {        try {            ISuportePersistente sp = SuportePersistenteOJB.getInstance();            IPersistentDelegate persistentDelegate = sp.getIPersistentDelegate();            IPersistentStudent persistentStudent = sp.getIPersistentStudent();            String user = (String) hashMap.get("user");            IStudent student = persistentStudent.readByUsername(user);            IDelegate delegate = persistentDelegate.readByStudent(student);            return Cloner.copyIDelegate2InfoDelegate(delegate);        } catch (ExcepcaoPersistencia e) {            throw new FenixServiceException(e.getMessage());        }    }