final String fieldName = StringUtils.uncapitalize(serviceInterface
.getSimpleTypeName());
if (autowire) {
// Add an autowired field of the type of this service
cidBuilder.addField(new FieldMetadataBuilder(callerMID, 0, Arrays
.asList(new AnnotationMetadataBuilder(AUTOWIRED)),
new JavaSymbolName(fieldName), serviceInterface));
}
else {
// Add a set method of the type of this service
cidBuilder.addField(new FieldMetadataBuilder(callerMID, 0,
new JavaSymbolName(fieldName), serviceInterface, null));
JavaSymbolName setMethodName = new JavaSymbolName("set"
+ serviceInterface.getSimpleTypeName());
List<JavaType> parameterTypes = new ArrayList<JavaType>();
parameterTypes.add(serviceInterface);