Replace the use of the custom Base64 class by the use of StringUtil. StringUtil wraps the use of utilitary class like those in Apache Commons APII or in Java API