protected boolean isReplaceNeeded(final String url){
  return !(UrlUriLocator.isValid(url) || DataUriGenerator.isDataUri(url.trim()));
}

protected boolean isReplaceNeeded ( final String url ) { return ! ( UrlUriLocator . isValid ( url ) || DataUriGenerator . isDataUri ( url . trim ( ) ) ) ; }
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 ) .
