IEndPointDescriptor without using deprecated INSTANCE
Dear Jazz API experts,
If I want to get an endpoint of a built-in link type, I could either do it like this (where INSTANCE is deprecated)
IEndPointDescriptor parentEndpoint = ILinkTypeRegistry.INSTANCE.getLinkType("com.ibm.team.workitem.linktype.parentworkitem").getTargetEndPointDescriptor();
or like this (which uses INSTANCE internally:
WorkItemEndPoints.PARENT_WORK_ITEM
I'm using a custom link type, so I have to stick with
IEndPointDescriptor myEndpoint = ILinkTypeRegistry.INSTANCE.getLinkType("com.my.company.linktype.mycustomlink").getTargetEndPointDescriptor();
Is there a way to get the EndpointDescriptor without using a deprecated API?
Happy new year to all of you and thanks in advance for your help,
Lukas