private void invokeRemoveRelatedId(Object myId, Object relatedId)
{
try
{
Transaction tx = getTransaction();
EntityCache instanceCache = (EntityCache)manager.getContainer().getInstanceCache();
/*
RelationInterceptor.RelationInvocation invocation =
new RelationInterceptor.RelationInvocation(RelationInterceptor.CMRMessage.REMOVE_RELATED_ID);
invocation.setId(instanceCache.createCacheKey(myId));
invocation.setArguments(new Object[]{this, relatedId});
invocation.setTransaction(tx);
invocation.setPrincipal(SecurityAssociation.getPrincipal());
invocation.setCredential(SecurityAssociation.getCredential());
invocation.setType(InvocationType.LOCAL);
*/
SecurityActions actions = SecurityActions.UTIL.getSecurityActions();
CMRInvocation invocation = new CMRInvocation();
invocation.setCmrMessage(CMRMessage.REMOVE_RELATION);
invocation.setEntrancy(Entrancy.NON_ENTRANT);
invocation.setId(instanceCache.createCacheKey(myId));
invocation.setArguments(new Object[]{this, relatedId});
invocation.setTransaction(tx);
invocation.setPrincipal(actions.getPrincipal());
invocation.setCredential(actions.getCredential());
invocation.setType(InvocationType.LOCAL);