if (!shiftProfessorshipList.isEmpty()) {
hasCredits = CollectionUtils.exists(shiftProfessorshipList, new Predicate() {
@Override
public boolean evaluate(Object arg0) {
ShiftProfessorship shiftProfessorship = (ShiftProfessorship) arg0;
return shiftProfessorship.getPercentage() != null && shiftProfessorship.getPercentage() != 0;
}
});
}
if (!hasCredits) {