opendap/src/main/java/opendap/dap/DDS.java
public BaseType getVariable(String name) throws NoSuchVariableException
    {
        Stack s = new Stack();
        s = search(name, s);
        return (BaseType) s.pop();
    }
public BaseType getVariable(String name) throws NoSuchVariableException
    {
        Stack s = new Stack();
        s = search(name, s);
        return (BaseType) s.pop();
    }
public BaseType getVariable ( String name ) throws NoSuchVariableException { Stack s = new Stack ( ) ; s = search ( name , s ) ; return ( BaseType ) s . pop ( ) ; }
Returns a reference to the named variable.

@param name the name of the variable to return.
@return the variable named <code>name</code>.
@throws NoSuchVariableException if the variable isn't found.
Returns a reference to the named variable .