public Component getListCellRendererComponent(JList<?> list,
                                 Object value,
                                 int index,
                                 boolean isSelected,
                                 boolean cellHasFocus) {
        super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
        if (value instanceof Task) {
            Task task = (Task)value;         
             if (task.getResponsiblePerson() == null && task.getStatus().equals("Not Started"))
            {
              setText(task.getTaskName());                    
            }                              
            else if (task.getStatus().equals("Not Started") && task.getResponsiblePerson() != null)
            {
               setText(task.getTaskName() + "    " + task.getResponsiblePerson().getUsername());                  
            }                              
            else if (task.getStatus().equals("In Progress"))
            {
               setText(task.getTaskName());                         
            }                              
            else if (task.getStatus().equals("Completed"))
            {
                setText(task.getTaskName());                        
            }
        }
        
         if (value instanceof Asset) {
            Asset task = (Asset)value;
            setText(task.getName());
            // setIcon(ingredient.getIcon());
        }    
        return this;
    }