JSONArray a = JSONArray.fromObject(json.get("libraries"));
Set<Library> saveSet = new HashSet<Library>();
for (JSONObject j : (Iterable<JSONObject>) a) {
try {
SecurityProfile sp = null;
Sample sample = null;
//String libAlias = null;
String sampleAlias = j.getString("parentSample");
for (Sample s : p.getSamples()) {