/** * bidirectional - set the relationship between a MetaProperty and its parentMetaBean * * @param name property name * @param property * if <code>null</code>, remove */ public void putProperty(String name, MetaProperty property) { if (properties == null) { properties = new HashMap<String, MetaProperty>(); } if (property == null) { this.properties.remove(name); } else { property.setParentMetaBean(this); this.properties.put(name, property); } }