private static URI buildDefaultURI ( final String userId ) { // Construct the default URI for the user ID that is not a URI. String userAgentBaseUri = System . getProperty ( USER_AGENT_BASE_URI_PROPERTY ) ; if ( isNullOrEmpty ( userAgentBaseUri ) ) { // use the default local user agent base uri userAgentBaseUri = DEFAULT_USER_AGENT_BASE_URI ; } final String userAgentUri = userAgentBaseUri + userId ; LOGGER . trace ( "Default URI is created for user {}: {}" , userId , userAgentUri ) ; return URI . create ( userAgentUri ) ; }
Build default URI with the configured base uri for agent