container/services/src/main/java/org/mobicents/slee/runtime/sbb/SbbContextImpl.java
public Object getResourceAdaptorInterface(ResourceAdaptorTypeID raTypeID,
			String raLink) throws NullPointerException,
			IllegalArgumentException {
		if (raTypeID == null) {
			throw new NullPointerException("null ra type id");
		}
		if (raLink == null) {
			throw new NullPointerException("null ra link");
		}
		if (!sbbObject.getSbbComponent().getDependenciesSet().contains(raTypeID)) {
			throw new IllegalArgumentException("ra type "+raTypeID+" not referred by the sbb.");
		}
		final ResourceManagement resourceManagement = sleeContainer.getResourceManagement();
		
		String raEntityName = null;
		try {
			raEntityName = resourceManagement.getResourceAdaptorEntityName(raLink);
		} catch (UnrecognizedLinkNameException e) {
			throw new IllegalArgumentException("ra link "+raLink+" not found.");
		}
		
		return resourceManagement.getResourceAdaptorEntity(raEntityName).getResourceAdaptorInterface(raTypeID);
		
	}
public Object getResourceAdaptorInterface(ResourceAdaptorTypeID raTypeID,
			String raLink) throws NullPointerException,
			IllegalArgumentException {
		if (raTypeID == null) {
			throw new NullPointerException("null ra type id");
		}
		if (raLink == null) {
			throw new NullPointerException("null ra link");
		}
		if (!sbbObject.getSbbComponent().getDependenciesSet().contains(raTypeID)) {
			throw new IllegalArgumentException("ra type "+raTypeID+" not referred by the sbb.");
		}
		final ResourceManagement resourceManagement = sleeContainer.getResourceManagement();
		
		String raEntityName = null;
		try {
			raEntityName = resourceManagement.getResourceAdaptorEntityName(raLink);
		} catch (UnrecognizedLinkNameException e) {
			throw new IllegalArgumentException("ra link "+raLink+" not found.");
		}
		
		return resourceManagement.getResourceAdaptorEntity(raEntityName).getResourceAdaptorInterface(raTypeID);
		
	}
/*
(non-Javadoc)

@see
org.mobicents.slee.SbbContextExt#getResourceAdaptorInterface(javax.slee
.resource.ResourceAdaptorTypeID, java.lang.String)