if (this.getEmployeeDepartmentUnit().isActive(Calendar.getInstance().getTime())) {
if (this.getEmployeeDepartmentUnit() != null && this.getEmployeeDepartmentUnit().isActive(Calendar.getInstance().getTime())) {
    public String getUnits() throws FenixFilterException, FenixServiceException {        StringBuffer buffer = new StringBuffer();        buffer.append("<ul>");        if (this.getEmployeeDepartmentUnit().isActive(Calendar.getInstance().getTime())) {            getUnitsList(this.getEmployeeDepartmentUnit(), 0, buffer);        }        else{            return "";        }        buffer.append("</ul>");        return buffer.toString();    }