private long getMaxIdleTime(ImplementationProvider impProvider) {
// Check to see if the maxIdleTime has been specified using @ConversationAttributes.
// Implementation annotated attributes are honoured first.
if ((impProvider != null) &&
(impProvider instanceof ScopedImplementationProvider)) {
ScopedImplementationProvider aScopedImpl =
(ScopedImplementationProvider) impProvider;
long maxIdleTime = aScopedImpl.getMaxIdleTime();
if (maxIdleTime > 0) {
return maxIdleTime;
}
}
return manager.getMaxIdleTime();