List<ResourcePrototypeImpl> resources = new ArrayList<ResourcePrototypeImpl>();
for (Method method : bundleType.getMethods()) {
String methodName = method.getName();
WebappSource source = method.getAnnotation(WebappSource.class);
if (source == null) {
_log.warn("no Resource annotation found: " + methodName);
continue;
}
String[] values = source.value();
if (values == null || values.length != 1)
throw new IllegalStateException("@WebappSource has no value: "
+ bundleType.getName() + "#" + methodName);
String resourceName = values[0];