RebindTestUtils.checkCurrentMementoSerializable(origApp);
}
if (terminateOrigManagementContext) {
origManagementContext.terminate();
}
<BUG>LocalManagementContext newManagementContext = createNewManagementContext();
return (T) RebindTestUtils.rebind(newManagementContext, classLoader);

}</BUG>
@SuppressWarnings("unchecked")

RebindTestUtils.checkCurrentMementoSerializable(origApp);
}
if (terminateOrigManagementContext) {
origManagementContext.terminate();
}
newManagementContext = createNewManagementContext();
newApp = (T) RebindTestUtils.rebind((LocalManagementContext)newManagementContext, classLoader);
return newApp;
}
@SuppressWarnings("unchecked")
