Issue-ID: AAF-488
Change-Id: Ie20a7f6fa53068defa11c04492c41970888d2248
Signed-off-by: Instrumental <jonathan.gathman@att.com>
lookup = nsd.parent;
if (type.type == nsd.type) {
return Result.ok(nsd);
+ } else {
+ int dot = str.lastIndexOf('.');
+
+ if (dot < 0) {
+ return Result.err(Status.ERR_NsNotFound, "No Namespace for [%s]", str);
+ } else {
+ return deriveFirstNsForType(trans, str.substring(0, dot),type);
+ }
}
} else {
return Result.err(Status.ERR_NsNotFound,"There is no valid Company Namespace for %s",str);