move responsibility for creating path and ancestors array from instance Api to patternAdaptor