Added getPathPrefix to fetch root of an adapter