Variable resolveToVariable(Object o) throws PlayerDebugException {
  Variable v=null;
  if (o instanceof Variable)   return (Variable)o;
{
    String name=o.toString();
    long id=nameAsId(name);
    if (id != Value.UNKNOWN_ID) {
    }
 else {
      id=determineContext(name);
      v=locateForNamed(id,name,true);
      if (v != null)       v=new VariableFacade(v,id,m_isolateId);
 else       if (v == null && m_createIfMissing && name.charAt(0) != '$')       v=new VariableFacade(id,name,m_isolateId);
    }
  }
  return v;
}

Variable resolveToVariable ( Object o ) throws PlayerDebugException { Variable v = null ; if ( o instanceof Variable ) return ( Variable ) o ; { String name = o . toString ( ) ; long id = nameAsId ( name ) ; if ( id != Value . UNKNOWN_ID ) { } else { id = determineContext ( name ) ; v = locateForNamed ( id , name , true ) ; if ( v != null ) v = new VariableFacade ( v , id , m_isolateId ) ; else if ( v == null && m_createIfMissing && name . charAt ( 0 ) != '$' ) v = new VariableFacade ( id , name , m_isolateId ) ; } } return v ; }
resolve the object into a variable by various means and using the current context .
