}
if (!(json instanceof JSONMap)) {
throw new JSONException("illegal type for JavaBeanDecoder. the json[" + json.toString()
+ "] isn't a JSONMap");
}
JSONMap map = (JSONMap) json;
String referenceID = map.getReferFromJSONProp();
if (referenceID != null) {
Object o = references.get(referenceID);
return (T) o;
} else {
T target = this.newInstance(map, references);