public DescribeSRSResponseDocument completeResponse() { DescribeSRSResponseDocument document = DescribeSRSResponseDocument.Factory.newInstance(); DescribeSRSResponseType rootDoc = document.addNewDescribeSRSResponse(); rootDoc.newCursor().insertComment("Generated " + Calendar.getInstance().getTime()); ListSRSResponse.QueryInfoSrs(rootDoc.addNewQueryInfo(), "URL"); rootDoc.getQueryInfo().getQueryUrl().setName("DescribeSRS"); Utilities.addInputStringCriteria( rootDoc.getQueryInfo().addNewCriteria(), "srsName", "Mouse_ABAreference_1.0"); SRSCollection coll1 = rootDoc.addNewSRSCollection(); coll1.setHubCode("HUBA"); SRSList srsList = coll1.addNewSRSList(); SRSType srs1 = srsList.addNewSRS(); ListSRSResponse.SrsExample1(srs1); Orientations o = coll1.addNewOrientations(); OrientationType orientaiton1 = o.addNewOrientation(); // orientation(orientaiton1,code,name); ListSRSResponse.orientation(orientaiton1, "Left", "Left"); orientaiton1 = o.addNewOrientation(); ListSRSResponse.orientation(orientaiton1, "Right", "Right"); orientaiton1 = o.addNewOrientation(); ListSRSResponse.orientation(orientaiton1, "Ventral", "Ventral"); orientaiton1 = o.addNewOrientation(); ListSRSResponse.orientation(orientaiton1, "Dorsal", "Dorsal"); orientaiton1 = o.addNewOrientation(); ListSRSResponse.orientation(orientaiton1, "Posterior", "Posterior"); orientaiton1 = o.addNewOrientation(); ListSRSResponse.orientation(orientaiton1, "Anterior", "Anterior"); Slices s = rootDoc.addNewSlices(); exampleSlice(s.addNewSlice(), 1); Fiducials f = rootDoc.addNewFiducials(); exampleFiducial(f.addNewFiducial(), 1); return document; }