Code example for UnknownUnwrapTypeException

0
		if ( ConnectionProvider.class.equals( unwrapType ) ||
				BoneCPConnectionProvider.class.isAssignableFrom( unwrapType ) ) {
			return (T) this;
		} 
 
		throw new UnknownUnwrapTypeException( unwrapType );
	} 
 
 
	/** 
	 * Legacy conversion. 
	 * @param map 
	 * @return Properties 
	 */ 
	private Properties mapToProperties(Map<String, String> map) {
		   Properties p = new Properties();
		   for (Map.Entry<String,String> entry : map.entrySet()) {
		     p.put(entry.getKey(), entry.getValue());
		   } 
		   return p;
Stop searching for code, let great code find you!  Add Codota to your java IDE