private ProtocolFinder writeableProtocolFinder( final Transaction t, final PortUnification pu_w, final ProtocolFinderInfo finderInfo) throws TransactionFailure { ProtocolFinder pf_w = null; for (ProtocolFinder pf : pu_w.getProtocolFinder()) { if (pf.getName().equals(finderInfo.name)) { pf_w = t.enroll(pf); break; } } if (pf_w == null) { pf_w = pu_w.createChild(ProtocolFinder.class); pu_w.getProtocolFinder().add(pf_w); } pf_w.setName(finderInfo.name); pf_w.setClassname(finderInfo.classname); pf_w.setProtocol(finderInfo.protocolName); return pf_w; }