public static Map<Object, Object> getSupportedProperties(Object ref) {

		if (null == supportedMIMETypes) {
			synchronized (MIMETypesSupport.class) {
				if (null == supportedMIMETypes) {
					// Load the supported MIME types out of a properties file
					try (InputStream is = ClassLoaderResourceUtils.getResourceAsStream(MIME_PROPS_LOCATION, ref)) {
						supportedMIMETypes = new Properties();
						supportedMIMETypes.load(is);
					} catch (FileNotFoundException e) {
						throw new BundlingProcessException(
								"Error retrieving " + MIME_PROPS_LOCATION + ". Please check your classloader settings");
					} catch (IOException e) {
						throw new BundlingProcessException(
								"Error retrieving " + MIME_PROPS_LOCATION + ". Please check your classloader settings");
					}
				}
			}
		}

		return supportedMIMETypes;
	}
public static Map < Object , Object > getSupportedProperties ( Object ref ) { if ( null == supportedMIMETypes ) { synchronized ( MIMETypesSupport . class ) { if ( null == supportedMIMETypes ) { try ( InputStream is = ClassLoaderResourceUtils . getResourceAsStream ( MIME_PROPS_LOCATION , ref ) ) { supportedMIMETypes = new Properties ( ) ; supportedMIMETypes . load ( is ) ; } catch ( FileNotFoundException e ) { throw new BundlingProcessException ( "Error retrieving " + MIME_PROPS_LOCATION + ". Please check your classloader settings" ) ; } catch ( IOException e ) { throw new BundlingProcessException ( "Error retrieving " + MIME_PROPS_LOCATION + ". Please check your classloader settings" ) ; } } } } return supportedMIMETypes ; }
Returns a Map object containing all the supported media extensions,
paired to their MIME type.

@param ref
An object reference to anchor the classpath (any 'this'
reference does).
@return