@Override
    void authenticate(Map<String, Object> options) {
        final String current = (String) options.get(AbstractReplicatorConfiguration.REPLICATOR_OPTION_COOKIES);
        final StringBuffer cookieStr = current != null ? new StringBuffer(current) : new StringBuffer();

        if (cookieStr.length() > 0) { cookieStr.append("; "); }
        cookieStr.append(String.format(Locale.ENGLISH, "%s=%s", cookieName, sessionID));

        options.put(AbstractReplicatorConfiguration.REPLICATOR_OPTION_COOKIES, cookieStr.toString());
    }
@ Override void authenticate ( Map < String , Object > options ) { final String current = ( String ) options . get ( AbstractReplicatorConfiguration . REPLICATOR_OPTION_COOKIES ) ; final StringBuffer cookieStr = current != null ? new StringBuffer ( current ) : new StringBuffer ( ) ; if ( cookieStr . length ( ) > 0 ) { cookieStr . append ( "; " ) ; } cookieStr . append ( String . format ( Locale . ENGLISH , "%s=%s" , cookieName , sessionID ) ) ; options . put ( AbstractReplicatorConfiguration . REPLICATOR_OPTION_COOKIES , cookieStr . toString ( ) ) ; }
---------------------------------------------