/**
  * {@inheritDoc}
  *
  * @throws ComponentLookupException
  * @see org.xwiki.contrib.mail.IMailComponent#getMailReader(java.lang.String, int,
  *     java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
  */
 @Override
 public IMailReader getMailReader(
     final String hostname,
     final int port,
     final String protocol,
     final String username,
     final String password,
     final Properties additionalProperties,
     final Boolean isAutoTrustSslCertificates)
     throws ComponentLookupException {
   final IMailReader reader = componentManager.getInstance(IMailReader.class);
   final ServerAccountSource source =
       new ServerAccountSource(
           hostname,
           port,
           protocol,
           username,
           password,
           additionalProperties,
           isAutoTrustSslCertificates);
   reader.setMailSource(source);
   return reader;
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.xwiki.contrib.mail.IMailComponent#getMailReader(org.xwiki.contrib.mail.internal.source.ServerAccountSource)
  */
 @Override
 public IMailReader getMailReader(ServerAccountSource source) throws ComponentLookupException {
   final IMailReader reader = componentManager.getInstance(IMailReader.class);
   reader.setMailSource(source);
   return reader;
 }