if (null != edgeDirectionType) {
direction = convert(edgeDirectionType);
}
// Get the real Kam from the KamCache
KamStoreObjectRef kamElementRef;
try {
kamElementRef = Converter.decodeNode(kamNode);
} catch (InvalidIdException e) {
throw new RequestException("Error processing KAM node", e);
}
org.openbel.framework.api.Kam objKam;
final KamInfo kamInfo = getKamInfo(kamElementRef,
"Error processing KAM node");
objKam = kamCacheService.getKam(kamInfo.getName());
// Get the Dialect (may be null)
final Dialect dialect = getDialect(request.getDialect());
if (dialect != null) {
objKam = new KamDialect(objKam, dialect);
}
if (objKam == null) {
throw new RequestException("Error processing KAM node",
new InvalidIdException(kamElementRef.getEncodedString()));
}
final org.openbel.framework.api.NodeFilter nodes =
convertNodeFilterInRequest(
request.getNodeFilter(), objKam);
final org.openbel.framework.api.EdgeFilter edges =
convertEdgeFilterInRequest(
request.getEdgeFilter(), objKam);
// Get the real KamNode from the Kam
Integer elemid = kamElementRef.getKamStoreObjectId();
org.openbel.framework.api.Kam.KamNode objKamNode;
objKamNode = objKam.findNode(elemid);
// Process the request
GetAdjacentKamNodesResponse response =