boolean parentRequired = true;
Node cnode = child.getClass().getAnnotation(Node.class);
if (cnode != null) {
type = cnode.value();
parentRequired = cnode.parentRequired();
} else {
ClassMethod method = this.getTypeIndicator(child.getClass());
if (method != null) {
cnode = method.getAnnotation(Node.class);
parentRequired = cnode.parentRequired();