public class ModelReference<T> {
private final ModelPath path;
private final ModelType<T> type;
public ModelReference(ModelPath path, ModelType<T> type) {
this.path = path;
<BUG>this.type = type;
}</BUG>
public ModelReference(String modelPath, ModelType<T> type) {
this(new ModelPath(modelPath), type);
}

public class ModelReference<T> {
private final ModelPath path;
private final ModelType<T> type;
public ModelReference(ModelPath path, ModelType<T> type) {
this.path = path;
this.type = type;
}
public static <T> ModelReference<T> of(ModelPath path, ModelType<T> type) {
return new ModelReference<T>(path, type);
}
public ModelReference(String modelPath, ModelType<T> type) {
this(new ModelPath(modelPath), type);
}
