code: public static ObjectReference getObjectRefByPath(final String path) {
          if (path == null) {
              return null;
          }
          return new ObjectReference().withSelector(path);
      }
docs: Gets object ref by path.
  
  @param path the path
  @return the object ref by path