private final Map<ExecutableElement, String> metadataProperties = new HashMap<ExecutableElement, String>();
public Model(DeclaredType type) {
this.type = type;
for (ExecutableElement e : ElementFilter.methodsIn(type.asElement().getEnclosedElements())) {
Metadata im = e.getAnnotation(Metadata.class);
if(im==null) continue;
String name = im.value();
if (name.length() == 0) name = ((TypeElement) type.asElement()).getQualifiedName().toString() + '.' + e.getSimpleName();
metadataProperties.put(e,name);
}
}