code: @Override
  	protected void validateComponent(final List<Diagnostic> diags) {
  		super.validateComponent(diags);
  
  		if (!isFileTypeValid()) {
  			// Add invalid file type validation message.
  			String invalidMessage = FileUtil.getInvalidFileTypeMessage(getFileTypes());
  			Diagnostic diag = new DiagnosticImpl(Diagnostic.ERROR, this, invalidMessage);
  			diags.add(diag);
  		}
  
  		if (!isFileSizeValid()) {
  			// Adds invalid file size validation message.
  			String invalidMessage = FileUtil.getInvalidFileSizeMessage(getMaxFileSize());
  			Diagnostic diag = new DiagnosticImpl(Diagnostic.ERROR, this, invalidMessage);
  			diags.add(diag);
  		}
  	}
docs: {@inheritDoc}