message = (bool) ? RenderUtils.getResourceString("VIGILANCY_RESOURCES", "email.convoke.convokedAgain") : RenderUtils.getResourceString("VIGILANCY_RESOURCES", "email.convoke.uncovoked"); message += "\n\nProva de avaliacao: " + convoke.getWrittenEvaluation().getName();
WrittenEvaluation writtenEvaluation = convoke.getWrittenEvaluation(); DateTime beginDate = writtenEvaluation.getBeginningDateTime(); String date = beginDate.getDayOfMonth() + "/" + beginDate.getMonthOfYear() + "/" + beginDate.getYear();     String minutes = String.valueOf(beginDate.getMinuteOfHour()); if(minutes.length()==1) { minutes = "0" + minutes; } message = "Caro docente,\n\n"; message += (bool) ? RenderUtils.getResourceString("VIGILANCY_RESOURCES", "email.convoke.convokedAgain") : RenderUtils.getResourceString("VIGILANCY_RESOURCES", "email.convoke.uncovoked"); message += "\n\nProva de avaliacao: " + writtenEvaluation.getFullName(); message +="\nData: " + date + " (" + beginDate.getHourOfDay() + ":" + minutes +"h)";
    private String generateMessage(Boolean bool, VigilancyWithCredits convoke) {         	String message = "";        message = (bool) ? RenderUtils.getResourceString("VIGILANCY_RESOURCES", "email.convoke.convokedAgain") : RenderUtils.getResourceString("VIGILANCY_RESOURCES", "email.convoke.uncovoked");        message += "\n\nProva de avaliacao: " + convoke.getWrittenEvaluation().getName();        return message;    }