I want to associate Shared Object Maps dynamically.

For Example I have two builds and have captured two separate Shared Maps for each.Depending on my requirement I have to associate the Sharedmap to the script.

Is there anyu way that I can associate the Object Map dynamically.I tried with an option:
getScriptDefinition().setMapName("datastore\relati ve\map_name.rftmap")

But it changed my objectmap name but not really replaced the object map.

If its possible to associate the map dynamically pls explain with an example.

Patel Reddy