public static IScope findApplication ( IScope from ) { IScope current = from ; while ( current . hasParent ( ) && ! current . getType ( ) . equals ( ScopeType . APPLICATION ) ) { current = current . getParent ( ) ; } return current ; }
Returns the application scope for specified scope . Application scope has depth of 1 and has no parent .