Common helpers and extensions.
Adds a trailing slash to the URI if it does not already have one.
Extracts credentials from user info in URI if set.
Returns the Java Type for T, including generic type arguments (e.g., Page<Contact>).
Page<Contact>
Resolves a relative URI using this URI as the base.