Code example for UnknownUnwrapTypeException

0
		} 
		else if ( DataSource.class.isAssignableFrom( unwrapType ) ) {
			return (T) getDataSource(); 
		} 
		else { 
			throw new UnknownUnwrapTypeException( unwrapType );
		} 
	} 
 
	/** 
	 * {@inheritDoc} 
	 */ 
	public void configure(Map configValues) {
		if ( this.dataSource == null ) {
			final Object dataSource = configValues.get( Environment.DATASOURCE );
			if ( DataSource.class.isInstance( dataSource ) ) {
				this.dataSource = (DataSource) dataSource;
			} 
			else { 
				final String dataSourceJndiName = (String) dataSource;
Experience pair programming with AI  Get Codota for Java