}
Properties properties = GUtil.loadProperties(resource);
String implClassName = properties.getProperty("implementation-class");
if (!GUtil.isTrue(implClassName)) {
throw new PluginInstantiationException(String.format(
"No implementation class specified for plugin '%s' in %s.", pluginId, resource));
}
try {
implClass = classLoader.loadClass(implClassName).asSubclass(Plugin.class);
} catch (ClassNotFoundException e) {
throw new PluginInstantiationException(String.format(
"Could not find implementation class '%s' for plugin '%s' specified in %s.", implClass, pluginId,
resource), e);
}
idMappings.put(pluginId, implClass);