question: protected boolean isReplaceNeeded ( final String url ) { return ! ( UrlUriLocator . isValid ( url ) || DataUriGenerator . isDataUri ( url . trim ( ) ) ) ; }
target:  Check if url must be replaced or not. The replacement is not needed if the url of the image is absolute (can be resolved by urlResourceLocator) or if the url is a data uri (base64 encoded value).