if (unjustifiedPeriod.getMinutes() < 0) { result.append((-unjustifiedPeriod.getMinutes())); if (!result.toString().startsWith("-")) { result = new StringBuffer("-").append(result); } } else { result.append(unjustifiedPeriod.getMinutes()); }
result.append(unjustifiedPeriod.getMinutes());
    public String getUnjustifiedTimeFormatted() {        Period unjustifiedPeriod = getUnjustifiedTime().toPeriod();        StringBuffer result = new StringBuffer();        result.append(unjustifiedPeriod.getHours());        result.append(":");        if (unjustifiedPeriod.getMinutes() > -10 && unjustifiedPeriod.getMinutes() < 10) {            result.append("0");        }        if (unjustifiedPeriod.getMinutes() < 0) {            result.append((-unjustifiedPeriod.getMinutes()));            if (!result.toString().startsWith("-")) {                result = new StringBuffer("-").append(result);            }        } else {            result.append(unjustifiedPeriod.getMinutes());        }        return result.toString();    }