Assignment currentAssignment = assignmentsRepository.getAssignment(userID, applicationName, experimentID, context); if (!overwrite && currentAssignment != null && !currentAssignment.isBucketEmpty()) { throw new AssignmentExistsException(userID, applicationName, experimentLabel);