code: public static String findInstanceName( String instancePath ) {
  
  		String instanceName = "";
  		Matcher m = Pattern.compile( "([^/]+)$" ).matcher( instancePath );
  		if( m.find())
  			instanceName = m.group( 1 );
  
  		return instanceName;
  	}
docs: Finds the name of an instance from its path.
  @param instancePath a non-null instance path
  @return an instance name, or the path itself if it is not valid (e.g. no slash)