public @Nonnull Object getRoot() {
    Chain current = this;
    while (current.hasParent()) {
      current = current.getParent();
    }
    return current.getValue();
  }
public @ Nonnull Object getRoot ( ) { Chain current = this ; while ( current . hasParent ( ) ) { current = current . getParent ( ) ; } return current . getValue ( ) ; }
Returns the root object of this chain.