moving logic from DefaultPathResolver to DefaultLogicResult