Link link = createLink(entry, fromFeed, fromSubscription);
List<PointMarker> pm = createPointMarkers(entry, fromFeed, fromSubscription);
BookmarkEntry newBmEntry = null;
if(title != null && user != null && link != null){
Bookmark bm = new Bookmark(user,link);
if(tags != null && tags.isEmpty() == false){
StringBuffer sb = new StringBuffer();
for(String t : tags){
sb.append(t.trim());
sb.append(' ');
}
bm.setTags(sb.toString().trim());
}
if(machineTags != null && machineTags.isEmpty() == false){
StringBuffer sb = new StringBuffer();
for(MachineTag mt : machineTags){
sb.append(mt.toString().trim());
sb.append(' ');
}
String tagline = bm.getTags();
if(tagline != null){
sb.append(tagline);
}
bm.setTags(sb.toString().trim());
}
bm.setTitle(title);
if(notes != null){
bm.setNotes(notes);
}else{
bm.setNotes("");
}
bm.setCreatedOn(createdOn);
bm.setLastUpdated(lastUpdated);
newBmEntry = new BookmarkEntry();
newBmEntry.setBookmark(bm);
if(pm != null && pm.isEmpty() == false){
newBmEntry.setPointMarkers(pm);
}