Code example for UnknownUnwrapTypeException

0
		if ( ConnectionProvider.class.equals( unwrapType ) ||
				UserSuppliedConnectionProviderImpl.class.isAssignableFrom( unwrapType ) ) {
			return (T) this;
		} 
		else { 
			throw new UnknownUnwrapTypeException( unwrapType );
		} 
	} 
 
	/** 
	 * {@inheritDoc} 
	 */ 
	public Connection getConnection() throws SQLException {
		throw new UnsupportedOperationException( "The application must supply JDBC connections" );
	} 
 
	/** 
	 * {@inheritDoc} 
	 */ 
	public void closeConnection(Connection conn) throws SQLException {
Contextual code suggestions in your IDE  Get Codota for Java