removed warnings
STS-3214: fixed IllegalArgumentException in case of non-file scheme on URI