* @param event
* @return
*/
public EMethodExitEvent createMethodExitEvent(MethodExitEvent event)
{
EMethodExitEvent ret=new EMethodExitEvent();
loadEventTimeData(ret);
loadStackTraceAndLocation(ret, event.thread());
if(!ret.getStackFrame().getMethod().isReturnVoid())
ret.setReturnValue(getValue(event.returnValue()));
//aun hay stack
if(ret.getStackFrame().getPreviousStackFrame()!=null)
lastLocations.put(ret.getStackFrame().getThread().getName(), ret.getStackFrame().getPreviousStackFrame());
//se finalizo el hilo
else
lastLocations.remove(ret.getStackFrame().getThread().getName());
JPAManager.getJPAManager().getEntityManager().persist(ret);
return ret;
}