find parent twin

if (replica.parentId) {
   // look up the twin parent
   def localParent = nodeHelper.getLocalIssueFromRemoteId(replica.parentId.toLong())     
   // if found, then set it, else don't create the subtask
   if(localParent) {        
     issue.parentId = localParent.id
   } 
}