private void processReturn(JavaMethod method, Part part) {
String name = part == null ? "return" : part.getName();
String type = part == null ? "void" : ProcessorUtil.resolvePartType(part, this.env);
String namespace = part == null ? null : ProcessorUtil.resolvePartNamespace(part);
JavaReturn returnType = new JavaReturn(name, type, namespace);
returnType.setQName(ProcessorUtil.getElementName(part));
returnType.setStyle(JavaType.Style.OUT);
if (namespace != null && type != null && !"void".equals(type)) {
returnType.setClassName(ProcessorUtil.getFullClzName(part, env, this.collector));
}
method.setReturn(returnType);
}