}
}
private static Class getSourceType(Method method) {
Annotation[][] annotations = method.getParameterAnnotations();
for (int i = 0; i < annotations.length; i++) {
<BUG>for (int j=0; j < annotations[i].length;j++) {
</BUG>
if (ServiceName.class.equals(annotations[i][j].annotationType())) {
return method.getParameterTypes()[i];
}

}
BeanDefinitionHolder holder = createServiceDefinition(serviceInstance, serviceAlias, serviceProtocol, servicePort, targetClass);
BeanDefinitionReaderUtils.registerBeanDefinition(holder, registry);
}
}
private static Class getSourceType(Method method) {
Annotation[][] annotations = method.getParameterAnnotations();
for (int i = 0; i < annotations.length; i++) {
for (int j = 0; j < annotations[i].length; j++) {
if (ServiceName.class.equals(annotations[i][j].annotationType())) {
return method.getParameterTypes()[i];
