tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private void updateNotificationEmails(Map<String, String> metaDataParams,String oldEmailId,String certOwnerEmailId) {
        String notificationEmails = metaDataParams.get("notificationEmails");
        if (!StringUtils.isEmpty(notificationEmails) && (notificationEmails.toLowerCase().contains(oldEmailId.toLowerCase()))) {
            notificationEmails = notificationEmails.replaceAll("(?i)" + oldEmailId, certOwnerEmailId).toLowerCase();
            notificationEmails=
                    new LinkedHashSet<String>(Arrays.asList(notificationEmails.split(","))).toString().replaceAll("(^\\[)|(\\]$)",
                    "").replace(", ", ",");

            metaDataParams.put("notificationEmails", notificationEmails);
        }
    }
/**
     * This method is to update the notification emails list with new owner email id
     * @param metaDataParams
     * @param oldEmailId
     * @param certOwnerEmailId
     */
This method is to update the notification emails list with new owner email id
@param metaDataParams
@param oldEmailId
@param certOwnerEmailId
This method is to update the notification emails list with new owner email id @param metaDataParams @param oldEmailId @param certOwnerEmailId
private void updateNotificationEmails(Map<String, String> metaDataParams,String oldEmailId,String certOwnerEmailId) {
        String notificationEmails = metaDataParams.get("notificationEmails");
        if (!StringUtils.isEmpty(notificationEmails) && (notificationEmails.toLowerCase().contains(oldEmailId.toLowerCase()))) {
            notificationEmails = notificationEmails.replaceAll("(?i)" + oldEmailId, certOwnerEmailId).toLowerCase();
            notificationEmails=
                    new LinkedHashSet<String>(Arrays.asList(notificationEmails.split(","))).toString().replaceAll("(^\\[)|(\\]$)",
                    "").replace(", ", ",");
            metaDataParams.put("notificationEmails", notificationEmails);
        }
    }
private void updateNotificationEmails ( Map < String , String > metaDataParams , String oldEmailId , String certOwnerEmailId ) { String notificationEmails = metaDataParams . get ( "notificationEmails" ) ; if ( ! StringUtils . isEmpty ( notificationEmails ) && ( notificationEmails . toLowerCase ( ) . contains ( oldEmailId . toLowerCase ( ) ) ) ) { notificationEmails = notificationEmails . replaceAll ( "(?i)" + oldEmailId , certOwnerEmailId ) . toLowerCase ( ) ; notificationEmails = new LinkedHashSet < String > ( Arrays . asList ( notificationEmails . split ( "," ) ) ) . toString ( ) . replaceAll ( "(^\\[)|(\\]$)" , "" ) . replace ( ", " , "," ) ; metaDataParams . put ( "notificationEmails" , notificationEmails ) ; } }
This method is to update the notification emails list with new owner email id
 @param metaDataParams
 @param oldEmailId
 @param certOwnerEmailId
This method is to update the notification emails list with new owner email id @param metaDataParams @param oldEmailId @param certOwnerEmailId