class UrlValueConverter extends AbstractValueConverter<URL> {

	@Override
	public String toSafeString(URL value) {
		if (value == null) {
			return null;
		}
		final String userInfo = value.getUserInfo();
		final String urlAsString = value.toString();
		if (userInfo != null) {
			return urlAsString.replace(userInfo, getSafeUserInfo(userInfo));
		} else {
			return urlAsString;
		}
	}

	private  UrlValueConverter();

}