try this approach...
You can extend the base "extends ActivityService"
/**
* Method to get Activity nodes from Section
*
* @param includeSelf
* @param nodeUuid
* @param sectionId
* @return ActivityNodeList
* @throws ActivityServiceException
*/
public ActivityNodeList getActivityNodesInSection(String nodeUuid, String sectionId boolean includeSelf) throws ActivityServiceException {
private String sectionUri = "/activities/service/atom2/descendants";
if (null == activityId ){
throw new ActivityServiceException(null, "Null activityId");
}
/**
* Includes section node, if it's true
*/
String include = "no";
if(includeSelf){
include = "yes";
}
try {
Map<String, String> params = new HashMap<String, String>();
params.put("nodeUuid", activityId);
params.put("includeSelf", include);
params.put("section", sectionId);
return (ActivityNodeList) getEntities(sectionUri, params, new ActivityNodeFeedHandler(this));
} catch (Exception e) {
throw new ActivityServiceException(e);
}
}
then the function you call - in your case, nodeUuid and sectionid should be the same.