The function provides the list of the Java references in an environment.
getListOfJavaReferences(envir = .GlobalEnv)
the environment to be scanned for java.object and java.list instances. By default, it is the global environment
a vector with the names of the instances
By default this function provides the Java reference in the current environment. If there is no Java references then the value of the function is an empty list. If just.names is set to true, the value is a vector with the names of the instances. If false, then the function returns a list with the instances.