class InternalDefaultConfigurationLoader {

	public @Nonnull Properties load(ClassLoader loader, String configurationName) {
		try (InputStream resourceAsStream = loader
				.getResourceAsStream("META-INF/" + configurationName + ".properties")) {
			if (resourceAsStream == null) {
				throw new ConfigurationNotFoundException("the configuration " + configurationName
						+ " could not be found with the ClassLoader " + loader);
			}
			Properties properties = new Properties();
			properties.load(resourceAsStream);
			return properties;
		} catch (IOException e) {
			throw new IllegalStateException(e);
		}
	}

}