Improvement to get a bean without transaction.