private LicenseNumber(String nameIdentifier, int yearOfIssue, int serialNumber, String stringRepresentation){
		this.nameIdentifier=nameIdentifier; 
		if(nameIdentifier.isEmpty())
            throw new IllegalArgumentException("The name Identifier is null");
		
		Date date = new Date();
        Calendar cal = new GregorianCalendar();
        cal.setTime(date);
        this.yearOfIssue = cal.get(Calendar.YEAR);
        Calendar todaysDate = Calendar.getInstance();
        if (this.yearOfIssue > todaysDate.get(Calendar.YEAR))
            throw new IllegalArgumentException("That is not a valid year of issue");
       
        Random randomNumber = new Random();
        this.serialNumber = randomNumber.nextInt(9) + 1;
        if (serialNumber < 0 || serialNumber > 10)
            throw new IllegalArgumentException("The number is not appropriate"); 
        
        this.stringRepresentation = stringRepresentation;
        }