Question: I have a single business interface that is implemented by multiple stateless beans.
Each implementation has a annotation at Class level with a unique value.
I use CDI injection as 

```
@Any Instance<MyInterface> implementations;

```

I want to look up a specific implemenattion based a value (which matches the annotation value).
Now since all implementations are EJBs I get an EJB proxy and unable to parse annotation. Please suggest a way to parse the annotation meta data from the proxy.

Also what are the other ways to get the EJB other than JNDI look up in above scenario?

Answer: 
A more modern approach would be to use the grid property.

```css
section {
  display: grid;
  align-items: stretch;
  height: 300px;
  grid-template-rows: min-content auto 60px;
}
header {
  background: tomato;
}
div {
  background: gold;
  overflow: auto;
}
footer {
  background: lightgreen;
}
```

```html
<section>
  <header>
    header: sized to content
    <br>(but is it really?)
  </header>
  <div>
    main content: fills remaining space<br>
    x<br>x<br>x<br>x<br>x<br>x<br>x<br>x<br>x<br>x<br>

    x<br>x<br>x<br>x<br>x<br>x<br>x<br>x<br>x<br>
    x<br>x<br>x<br>x<br>x<br>x<br>x<br>x<br>x<br>
    x<br>x<br>x<br>x<br>x<br>x<br>x<br>x<br>x<br>
    x<br>x<br>x<br>x<br>x<br>x<br>x<br>x<br>x<br>

  </div>
  <footer>
    footer: fixed height in px
  </footer>
</section>
```
This is the simplest example that I can think of. The key is

1. Parent is `display:flex`
2. Child has `flex-grow:1`
3. Parent MUST have `height` specified. If you specify `height:100%` on a parent div, then remember, the parent exists in a `<body>` and you'll see the body isn't 100% unless you add `height:100%` on the body too.

<http://jsfiddle.net/Ljbzsmvf/2/>

```css
div#parent {
  height: 300px;
  display: flex;
  flex-direction: column;
}

div#child {
  border: thin solid red;
  flex-grow: 1;
}
```

```html
<div id='parent'>
  Parent
  <div id='child'>
    Child
  </div>
</div>
```