}
public JSONObject changeContainer(HttpSession session, JSONObject json) {
if (json.has("platform")) {
String platform = json.getString("platform");
PlatformType pt = PlatformType.get(platform);
if (pt != null) {
if (pt.equals(PlatformType.ILLUMINA)) {
return changeIlluminaContainer(session, json);
}
else if (pt.equals(PlatformType.LS454)) {
return changeLS454Container(session, json);
}
else if (pt.equals(PlatformType.SOLID)) {
return changeSolidContainer(session, json);
}
/*
else if (pt.equals(PlatformType.IONTORRENT)) {
return null;
}
*/
else if (pt.equals(PlatformType.PACBIO)) {
return changePacBioContainer(session, json);
}
else {
return JSONUtils.SimpleJSONError("Unsupported platform type: " + platform);
}