// Get the real KamNode from the Kam
org.openbel.framework.api.Kam.KamNode objKamNode =
objKam
.findNode(kamElementRef.getKamStoreObjectId());
GetAdjacentKamEdgesResponse response =
OBJECT_FACTORY.createGetAdjacentKamEdgesResponse();
// Get the adjacent edges
Set<org.openbel.framework.api.Kam.KamEdge> adjedges;
if (direction == null) {
adjedges = objKam.getAdjacentEdges(objKamNode, edges);
} else {
adjedges = objKam.getAdjacentEdges(objKamNode, direction, edges);
}
for (org.openbel.framework.api.Kam.KamEdge edge : adjedges) {
KamEdge ke = convert(kamInfo, edge);
response.getKamEdges().add(ke);
}
return response;
}