// Init a default map
Map<String, IJaxwsWebServiceRef> references;
references = new HashMap<String, IJaxwsWebServiceRef>();
// Class level annotations (must have a name)
IJaxwsWebServiceRef ref = classAnnotationMetadata.getJaxwsWebServiceRef();
if (ref != null) {
references.put(ref.getName(), ref);
}
List<IJaxwsWebServiceRef> refs = classAnnotationMetadata.getJaxwsWebServiceRefs();
if ((refs != null) && (!refs.isEmpty())) {
for (IJaxwsWebServiceRef classLevelReference : refs) {
references.put(classLevelReference.getName(), classLevelReference);
}
}
// Field level annotations (may have a name, if not set, use field name)
Collection<EasyBeansEjbJarFieldMetadata> fields = classAnnotationMetadata.getStandardFieldMetadataCollection();
if ((fields != null) && (!fields.isEmpty())) {
for (EasyBeansEjbJarFieldMetadata field : fields) {
IJaxwsWebServiceRef fieldReference = field.getJaxwsWebServiceRef();
if (fieldReference != null) {
String refName = fieldReference.getName();
// Is there a usable name ?
if (refName == null) {
// If not, use the field name
refName = field.getFieldName();
}
references.put(refName, fieldReference);
}
}
}
// Method level annotations (may have a name, if not set, use property method name)
Collection<EasyBeansEjbJarMethodMetadata> methods = classAnnotationMetadata.getMethodMetadataCollection();
if ((methods != null) && (!methods.isEmpty())) {
for (EasyBeansEjbJarMethodMetadata methodMetadata : methods) {
IJaxwsWebServiceRef methodReference = methodMetadata.getJaxwsWebServiceRef();
if (methodReference != null) {
String refName = methodReference.getName();
// Is there a usable name ?
if (refName == null) {
// If not, use the method's property name
String methodName = methodMetadata.getJMethod().getName();
methodName = methodName.substring("set".length());