return parent;
}
private static Object getInstanceBySubPath(Object instance, String path, String fullPath){
Object object = null;
ClassType parent = TypeOracle.Instance.getClassType(instance.getClass());
if (! isMethod(path)){
Field field = parent.findField(path);
if (field == null)
pathNotFound(path, fullPath);
object = field.getFieldValue(instance);
}else{
Method method = parent.findMethod(path, new String[0]);
if (method == null)
pathNotFound(path, fullPath);
object = method.invoke(instance, null);
}