I just came to a strange JAVA problem that i cant fix. 

I call a JAVA bean to retrieve some values from a view.
To do that i call a JAVA class to do the Lookup.

The lookup is called twice. Once with the currentUser id and after that with SessionAsSigner to retrieve documents the currentUser cant read because of reader fields.

Here is my observation: It seems that the first time you retrieve a session(either the asSigner or currentSession) this session will be then the only session you can use in this thread. Once you call the other method it will still be either the currentSession or the asSigner session.

I tried to recylce the session, write 2 beans that carry only the session, write two JAVA classes that each host different sessions the result is always the same. The first session initialized is the only session you can get. To retrieve the session i used already the ExtLib class, DomUtils and VariableResolver but it seems to be always the same issue regardless how i get the sessions.

Here is a small example and the result i get:

Example 1:

```
Session s=Util.getCurrentSession()
Vector<String>=result=Util.lookup(s,view,key)
//result is empty because user cant read the documents -OK
Session s=Util.getSessionasSigner()
Vector<String>=result=Util.lookup(s,view,key)
//result is empty although Signer can read document -NOK

```

Example 2

```
 Session s=Util.getSessionasSigner()
 Vector<String>=result=Util.lookup(s,view,key)
 //result returns the documents -OK
 Session s=Util.getCurrentSession()
 Vector<String>=result=Util.lookup(s,view,key)
 //result again returns the documents allthough the user shouldnt be able to read it -NOK

```

So whatever i do the second call is always wrong because of that issue.
Has anybody any idea what i can do about it.