MIGRATE from org.apache.commons.lang to org.apache.commons.lang3.(Strlookup not in org.apache.commons.lang3 version and is depracated)
Hi All,
As part of cloud migration we are planning to migrate import from org.apache.commons.lang to org.apache.commons.lang3.(lang3).
And to send a mail we are using Day common Mail template (com.day.cq.commons.mail.MailTemplate).
And we are using below mailTemplate.getEmail method and in one of the parameters we are using StringLookup which is part of org.apache.commons.lang.text.StrLookup (version1) as below.
import org.apache.commons.lang.text.StrLookup;
Email email = mailTemplate.getEmail(StrLookup.mapLookup(params), mail);
How do we migrate to version3 as org.apache.commons.lang3.text.StrLookup is deprecated .Do we need to rewrite in some other way.?Thanks in Advance.