// ra name
final String raIdentifier = ConnectorServices.getRegisteredResourceAdapterIdentifier(resourceAdapterName);
if (raIdentifier == null) {
throw MESSAGES.unknownResourceAdapter(resourceAdapterName);
}
final ResourceAdapterRepository resourceAdapterRepository = getResourceAdapterRepository();
if (resourceAdapterRepository == null) {
throw EJB3_LOGGER.resourceAdapterRepositoryUnAvailable();
}
try {
return resourceAdapterRepository.getEndpoint(raIdentifier);
} catch (NotFoundException nfe) {
throw EJB3_LOGGER.noSuchEndpointException(resourceAdapterName, nfe);
}
}