deadline.setDeadlineLimit((int) limitInSecond * 1000);
ApplicationContext appContext = WorkflowUtil.getApplicationContext();
WorkflowHelper workflowMapper = (WorkflowHelper) appContext.getBean("workflowHelper");
WorkflowDeadline newDeadline = workflowMapper.executeDeadlinePlugin(processId, activityId, deadline, null, startTime, createdTime);
Calendar calendar = Calendar.getInstance();
calendar.setTime(createdTime);
calendar.add(Calendar.MILLISECOND, newDeadline.getDeadlineLimit());
return calendar.getTime();