protected void passivate() throws SystemException {
final ThreadContext threadContext = ThreadContext.getThreadContext();
Hashtable<Object, BeanEntry> stateTable = new Hashtable<Object, BeanEntry>(bulkPassivationSize);
BeanEntry currentEntry;
final Operation currentOperation = threadContext.getCurrentOperation();
final BaseContext.State[] originalAllowedStates = threadContext.setCurrentAllowedStates(StatefulContext.getStates());
CoreDeploymentInfo deploymentInfo = threadContext.getDeploymentInfo();
try {
for (int i = 0; i < bulkPassivationSize; ++i) {
currentEntry = lruQueue.first();