}
Class<?>[] serviceInterfaces = serviceAnnotation.interfaces();
Class<?> value = serviceAnnotation.value();
if (serviceInterfaces.length > 0) {
if (!Void.class.equals(value)) {
InvalidMetaDataException e = new InvalidMetaDataException("Both interfaces and value specified in @Service on ");
e.setIdentifier(clazz.getName());
throw e;
}
for (Class<?> intf : interfaces) {
addService(services, intf);
}