/**
  * INTERNAL: This method is used to unwrap the oracle connection wrapped by the application
  * server. TopLink needs this unwrapped connection for certain Oracle Specific support. (ie
  * TIMESTAMPTZ) This is added as a workaround for bug 4565190
  */
 public Connection getConnection(AbstractSession session, Connection connection) {
   if (session.getServerPlatform() != null
       && (session.getLogin()).shouldUseExternalConnectionPooling()) {
     // This is added as a workaround for bug 4460996
     return session.getServerPlatform().unwrapConnection(connection);
   }
   return connection;
 }