code: public static Instance findInstanceByPath( Instance rootInstance, String instancePath ) {
  
  		Application tempApplication = new Application( new ApplicationTemplate());
  		if( rootInstance != null )
  			tempApplication.getRootInstances().add( rootInstance );
  
  		return findInstanceByPath( tempApplication, instancePath );
  	}
docs: Finds an instance by name.
  @param rootInstance a root instance
  @param instancePath the instance path
  @return an instance, or null if it was not found