private Context context;
private Properties properties;
@Override
protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
BeanEndpoint answer = new BeanEndpoint(uri, this);
answer.setBeanName(remaining);
// plugin registry to lookup in jndi for the EJBs
Registry registry = new JndiRegistry(getContext());
answer.setBeanHolder(new EjbRegistryBean(registry, getCamelContext(), answer.getBeanName()));
Processor processor = answer.getProcessor();
setProperties(processor, parameters);
return answer;
}