}
Location location = new AnnotatedModuleLocation(module.getLocation().getResource(),
method.getDeclaringClass(), method);
Visibility visibility = Visibility.PUBLIC;
if (Modifier.isProtected(method.getModifiers())) {
visibility = Visibility.PRIVATE;
}
ConfigurationPointDefinitionImpl cpd = new ConfigurationPointDefinitionImpl(module, configuration.id(),
location, visibility, method.getReturnType().getName(), Occurances.UNBOUNDED);