for (ServerPluginEnvironment env : getPluginEnvironments()) {
BundlePluginDescriptorType descriptor = (BundlePluginDescriptorType) env.getPluginDescriptor();
// get the facet and see if this plugin can deal with the recipe
String pluginName = env.getPluginKey().getPluginName();
ServerPluginComponent component = getServerPluginComponent(pluginName);
BundleServerPluginFacet facet = (BundleServerPluginFacet) component; // we know this cast will work because our loadPlugin ensured so
getLog().debug("Bundle server plugin [" + pluginName + "] is parsing a recipe");
ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(env.getPluginClassLoader());