question: public static String encodeJavaOpts ( String javaOpts ) { String javaOptsBase64 = DatatypeConverter . printBase64Binary ( javaOpts . getBytes ( Charset . forName ( "UTF-8" ) ) ) ; return String . format ( "\"%s\"" , javaOptsBase64 . replace ( "=" , "&equals;" ) ) ; }
target:  Encode the JVM options <br> 1. Convert it into Base64 format <br> 2. Add \" at the start and at the end <br> 3. replace "=" with "&amp;equals;"