public Configuration loadEmbeddedConfig(final String resource) {
        final YamlConfiguration config = new YamlConfiguration();
        final InputStream defaults = this.getResource(resource);
        if (defaults == null) return config;

        final InputStreamReader reader = new InputStreamReader(defaults, CustomPlugin.CONFIGURATION_SOURCE);
        final StringBuilder builder = new StringBuilder();
        final BufferedReader input = new BufferedReader(reader);
        try {
            try {
                String line;
                while ((line = input.readLine()) != null)
                    builder.append(line).append(CustomPlugin.LINE_SEPARATOR);
            } finally {
                input.close();
            }
            config.loadFromString(builder.toString());

        } catch (final Exception e) {
            throw new RuntimeException("Unable to load embedded configuration: " + resource, e);
        }

        return config;
    }