public static URI stripSingleURIQueryAndFragment(final URI inUri) throws StorageException {
        if (inUri == null) {
            return null;
        }
        try {
            return new URI(inUri.getScheme(), inUri.getAuthority(), inUri.getPath(), null, null);
        }
        catch (final URISyntaxException e) {
            throw Utility.generateNewUnexpectedStorageException(e);
        }
    }
public static URI stripSingleURIQueryAndFragment(final URI inUri) throws StorageException {
        if (inUri == null) {
            return null;
        }
        try {
            return new URI(inUri.getScheme(), inUri.getAuthority(), inUri.getPath(), null, null);
        }
        catch (final URISyntaxException e) {
            throw Utility.generateNewUnexpectedStorageException(e);
        }
    }
public static URI stripSingleURIQueryAndFragment ( final URI inUri ) throws StorageException { if ( inUri == null ) { return null ; } try { return new URI ( inUri . getScheme ( ) , inUri . getAuthority ( ) , inUri . getPath ( ) , null , null ) ; } catch ( final URISyntaxException e ) { throw Utility . generateNewUnexpectedStorageException ( e ) ; } }
Strips the Query and Fragment from the uri.

@param inUri
the uri to alter
@return the stripped uri.
@throws StorageException
Strips the Query and Fragment from the uri .