added method getByPath