code: protected String getAgentName(ILaunchConfiguration configuration) throws CoreException {
  		final String agentName = getConfigurationAccessor().getAgent(configuration);
  		if (agentName == null) {
  			return null;
  		}
  		return VariablesPlugin.getDefault().getStringVariableManager()
  				.performStringSubstitution(agentName);
  	}
docs: Returns the main type name specified by the given launch configuration,
  or <code>null</code> if none.
  
  @param configuration launch configuration
  @return the main type name specified by the given launch configuration,
  or <code>null</code> if none
  @throws CoreException if unable to retrieve the attribute