private Reference buildReferenceLocation(final ReferenceLocationInfo location) {
if (location.jndiProviderId != null) {
final String subContextName = "openejb/remote_jndi_contexts/" + location.jndiProviderId;
return new JndiReference(subContextName, location.jndiName);
} else {
return new JndiUrlReference(location.jndiName);
}
}