if (size < 1) {
// jndi.78=Reference contains no valid addresses
throw new ConfigurationException(Messages.getString("jndi.78")); //$NON-NLS-1$
}
Object ret = new rmiURLContextFactory().getObjectInstance(urls
.toArray(new String[size]), name, nameCtx, environment);
if (ret instanceof RegistryContext) {
((RegistryContext) ret).setReference(reference);
}