// Path: osgi.enroute.trains.api/src/osgi/enroute/trains/passenger/api/Person.java
// public class Person extends DTO {
// 
// 	public String id;
// 	
// 	public String firstName;
// 	public String lastName;
// 	
// 	public String email;
// 
// 	// urls to picture/website
// 	public String picture;
// 	public String website;
// 	
// 	// for "networking" applications?
// 	public String company;
// 	public String phone;
// 	
// }


import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import osgi.enroute.trains.passenger.api.Person;
					Elements nameLinks = p.select("h3 > a[href]");
					for(Element link : nameLinks){
						name = link.html();
					}
					
					Elements pictureLinks = p.select("div.user-picture > a[href]");
					for(Element link : pictureLinks){
						Element child = link.children().first();
						if(child!= null && child.hasAttr("src")){
							image = child.attr("src");
						}
					}
					
					Elements h5 = p.select("h5");
					for(Element e : h5){
						company = e.html();
					}
					
					String[] split = name.split(" ");
					firstName = split[0];
					for(int i=1;i<split.length;i++){
						if(split[i].length() > 2)
							lastName += split[i]+" ";
					}
					lastName = lastName.trim();
		
					if(firstName.isEmpty() || lastName.isEmpty())
						continue;
					
					
// Path: osgi.enroute.trains.api/src/osgi/enroute/trains/passenger/api/Person.java
// public class Person extends DTO {
// 
// 	public String id;
// 	
// 	public String firstName;
// 	public String lastName;
// 	
// 	public String email;
// 
// 	// urls to picture/website
// 	public String picture;
// 	public String website;
// 	
// 	// for "networking" applications?
// 	public String company;
// 	public String phone;
// 	
// }


// Path: osgi.enroute.trains.person.provider/src/osgi/enroute/trains/person/provider/util/PersonDownloader.java
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import osgi.enroute.trains.passenger.api.Person;

					Elements nameLinks = p.select("h3 > a[href]");
					for(Element link : nameLinks){
						name = link.html();
					}
					
					Elements pictureLinks = p.select("div.user-picture > a[href]");
					for(Element link : pictureLinks){
						Element child = link.children().first();
						if(child!= null && child.hasAttr("src")){
							image = child.attr("src");
						}
					}
					
					Elements h5 = p.select("h5");
					for(Element e : h5){
						company = e.html();
					}
					
					String[] split = name.split(" ");
					firstName = split[0];
					for(int i=1;i<split.length;i++){
						if(split[i].length() > 2)
							lastName += split[i]+" ";
					}
					lastName = lastName.trim();
		
					if(firstName.isEmpty() || lastName.isEmpty())
						continue;
					
					
					Person person = new Person();