props.put("java.naming.provider.url", "ejbd://127.0.0.1:" + port);
final Context context = new InitialContext(props);
final Widget remote = (Widget) context.lookup("WidgetBeanRemote");
final InvocationHandler handler = ProxyManager.getInvocationHandler(remote);
final EJBObjectHandler objectHandler = EJBObjectHandler.class.cast(handler);
final Properties properties = objectHandler.getEjb().getProperties();