public void init() {
// Build annotations and methods
List<XmlElementDecl> decls = this.registry.getXmlElementDecl();
for (Iterator<XmlElementDecl> iterator = decls.iterator(); iterator.hasNext();) {
XmlElementDecl xmlElementDecl = (XmlElementDecl) iterator.next();
String paramType = xmlElementDecl.getType();
JavaClass jaxbElementClass = new OXMJAXBElementImpl(paramType, this.javaModel);
methods.add(new OXMJavaMethodImpl(xmlElementDecl.getJavaMethod(), jaxbElementClass, this));
HashMap<String, Object> components = new HashMap<String, Object>();
components.put(NAME, xmlElementDecl.getName());
components.put(NAMESPACE, xmlElementDecl.getNamespace());
components.put(SUBSTITUTION_HEAD_NAME, xmlElementDecl.getSubstitutionHeadName());
components.put(SUBSTITUTION_HEAD_NAMESPACE, xmlElementDecl.getSubstitutionHeadNamespace());
Annotation anno = AnnotationProxy.getProxy(components, javax.xml.bind.annotation.XmlElementDecl.class,
this.javaModel.getClassLoader(), XMLConversionManager.getDefaultManager());
annotations.add(new JavaAnnotationImpl(anno));
}