Copy Board In Jira Using java

I’m trying to copy board from project x to project y.
I saw class BoardManager and there is a method called createBoard that does that, however it is not recommended to use classes that are in jira-core. Is there any alternative for that?
Thanks in advance :slight_smile: