Source:
private void createDefaultMotionObjects() { if (getExperimentalMarkerGeometryJson() == null) { experimentalMarkerGeometryJson = new JSONObject(); UUID uuidForMarkerGeometry = UUID.randomUUID(); experimentalMarkerGeometryJson.put("uuid", uuidForMarkerGeometry.toString()); experimentalMarkerGeometryJson.put("type", "SphereGeometry"); experimentalMarkerGeometryJson.put("radius", DEFAULT_MARKER_SIZE*experimentalMarkerScaleFactor); experimentalMarkerGeometryJson.put("widthSegments", 32); experimentalMarkerGeometryJson.put("heightSegments", 16); getExperimentalMarkerGeometryJson().put("name", "DefaultExperimentalMarker"); JSONArray json_geometries = (JSONArray) modelVisJson.get("geometries"); json_geometries.add(getExperimentalMarkerGeometryJson()); experimentalMarkerMaterialJson = new JSONObject(); UUID uuidForMarkerMaterial = UUID.randomUUID(); experimentalMarkerMaterialJson.put("uuid", uuidForMarkerMaterial.toString()); String colorString = JSONUtilities.mapColorToRGBA(getDefaultExperimentalMarkerColor()); experimentalMarkerMaterialJson.put("type", "MeshPhongMaterial"); experimentalMarkerMaterialJson.put("shininess", 30); experimentalMarkerMaterialJson.put("transparent", true); experimentalMarkerMaterialJson.put("emissive", JSONUtilities.mapColorToRGBA(new Vec3(0., 0., 0.))); experimentalMarkerMaterialJson.put("specular", JSONUtilities.mapColorToRGBA(new Vec3(0., 0., 0.))); experimentalMarkerMaterialJson.put("side", 2); experimentalMarkerMaterialJson.put("wireframe", false); experimentalMarkerMaterialJson.put("color", colorString); JSONArray json_materials = (JSONArray) modelVisJson.get("materials"); json_materials.add(getExperimentalMarkerMaterialJson()); } }

Target:
private void createDefaultMotionObjects() { if (getExperimentalMarkerGeometryJson() == null) { experimentalMarkerGeometryJson = new JSONObject(); UUID uuidForMarkerGeometry = UUID.randomUUID(); experimentalMarkerGeometryJson.put("uuid", uuidForMarkerGeometry.toString()); experimentalMarkerGeometryJson.put("type", "SphereGeometry"); experimentalMarkerGeometryJson.put("radius", experimentalMarkerRadius); experimentalMarkerGeometryJson.put("widthSegments", 32); experimentalMarkerGeometryJson.put("heightSegments", 16); getExperimentalMarkerGeometryJson().put("name", "DefaultExperimentalMarker"); JSONArray json_geometries = (JSONArray) modelVisJson.get("geometries"); json_geometries.add(getExperimentalMarkerGeometryJson()); experimentalMarkerMaterialJson = new JSONObject(); UUID uuidForMarkerMaterial = UUID.randomUUID(); experimentalMarkerMaterialJson.put("uuid", uuidForMarkerMaterial.toString()); String colorString = JSONUtilities.mapColorToRGBA(getDefaultExperimentalMarkerColor()); experimentalMarkerMaterialJson.put("type", "MeshPhongMaterial"); experimentalMarkerMaterialJson.put("shininess", 30); experimentalMarkerMaterialJson.put("transparent", true); experimentalMarkerMaterialJson.put("emissive", JSONUtilities.mapColorToRGBA(new Vec3(0., 0., 0.))); experimentalMarkerMaterialJson.put("specular", JSONUtilities.mapColorToRGBA(new Vec3(0., 0., 0.))); experimentalMarkerMaterialJson.put("side", 2); experimentalMarkerMaterialJson.put("wireframe", false); experimentalMarkerMaterialJson.put("color", colorString); JSONArray json_materials = (JSONArray) modelVisJson.get("materials"); json_materials.add(getExperimentalMarkerMaterialJson()); } }