How do I append a label to an existing Jira ticket using the Java client?

Using Java Jira client, my code to add labels overrides existing ones. How can I update the issue to append a new label? See revised code:

public void appendTag(String ticketId) {
    Map<String, Object> modifications = new HashMap<>();
    modifications.put("labels", Arrays.asList("NEW_LABEL"));
    JiraIssueModifier modifier = new JiraIssueModifier();
    modifier.updateTicket(ticketId, modifications);
}

hey, try fetching the existing lables then combine them with your new one instead of replacin. updating the merged list should do it. hope this helps!