def validationActionPointID(ap_id):
    if not ActionPointDao.getActionPointByID(ap_id):
        raise NotFoundException("Unable to find action point with given id")
    else:
        return True
def getActionPointByID(ap_id):
    validationActionPointID(ap_id)
    return ActionPointDao.getActionPointByID(ap_id)