code: public void removeReferencePlaceholders(final IdentifierConverter<Resource,FedoraResource> idTranslator,
                                               final Node node,
                                               final String propertyName,
                                               final Resource resource) throws RepositoryException {
  
          final String referencePropertyName = getReferencePropertyName(propertyName);
  
          final Node refNode = getJcrNode(idTranslator.convert(resource));
          final Value v = node.getSession().getValueFactory().createValue(refNode, true);
          removeNodeProperty(node, referencePropertyName, v);
      }
docs: Remove a reference placeholder that links one node to another in-domain resource
  @param idTranslator the id translator
  @param node the node
  @param propertyName the property name
  @param resource the resource
  @throws RepositoryException if repository exception occurred