&& TweetSyntax.URL_PATTERN.matcher(tweetUser.getUrl()).matches()) {
// Note: we can't easily delete an existing homepage (removing its
// rdf:type statement), as it might be the homepage of another
// agent. Therefore, "orphaned" Document resources are possible.
Document homepage = designate(tweetUser.getUrl(), Document.class);
agent.setHomepage(homepage);
}
if (null != tweetUser.getProfileImageUrl()
&& TweetSyntax.URL_PATTERN.matcher(tweetUser.getProfileImageUrl()).matches()) {