return (JMSEngineAdapter)obj;
}
if (obj instanceof ManagedConnectionFactory)
{
return new GenericJMSEngineAdapter((ConnectionFactory)((ManagedConnectionFactory)obj).createConnectionFactory());
}
}
return new GenericJMSEngineAdapter((ConnectionFactory)obj);
}