/** * {@inheritDoc} */ public synchronized Endpoint getEndpoint(String uniqueId) throws NotFoundException { if (uniqueId == null) throw new IllegalArgumentException("UniqueId is null"); if (uniqueId.trim().equals("")) throw new IllegalArgumentException("UniqueId is empty"); if (!rars.containsKey(uniqueId)) throw new NotFoundException(bundle.keyNotRegistered(uniqueId)); WeakReference<javax.resource.spi.ResourceAdapter> ra = rars.get(uniqueId); if (ra.get() == null) throw new NotFoundException(bundle.keyNotRegistered(uniqueId)); String mdrIdentifier = getMDRIdentifier(ra.get()); boolean is16 = is16(mdrIdentifier); Set<String> beanValidationGroups = getBeanValidationGroups(mdrIdentifier); String productName = getProductName(mdrIdentifier); String productVersion = getProductVersion(mdrIdentifier); Boolean isXA = recovery.get(uniqueId); if (isXA == null) isXA = Boolean.TRUE; return new EndpointImpl(ra, is16, beanValidationGroups, productName, productVersion, transactionIntegration, isXA.booleanValue()); }