Make it eclipse compatible

proposal.
These two point of code make use of some smart generics, but Eclipse doesn't recognize it and reports compilation errors.
there is a difference between:
 - checking the trace level once
 - checking the trace level twice

One is twice as efficient as the other ;-)