* @throws IOException if loading fails or the file can not be found
*/
public static BasicConfiguration getPluginConfiguration(File pluginJarFile, String configResourcePath) throws IOException {
InputStream stream = getPluginResource(pluginJarFile, configResourcePath);
try {
BasicConfiguration config = new BasicConfiguration();
try {
config.loadFromStream(stream);
} catch (Throwable t) {
throw new IOException("Error in YAML format", t);
}
return config;
} finally {