anchor.diff:  <%@ page import="java.util.Arrays" %>
   <%@ page import="java.util.Set" %>
   <%@ page import="java.util.HashSet" %>
  +<%@ page import="java.util.Iterator" %>
   
   <%@ page import="com.hp.hpl.jena.rdf.model.Model" %>
   <%@ page import="com.hp.hpl.jena.vocabulary.XSD" %>
   
   <%@ page import="org.json.JSONObject" %>
   <%@ page import="org.json.JSONException" %>
  +<%@ page import="org.json.JSONArray" %>
   
   <%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Individual" %>
   <%@ page import="edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary" %>
  
positive.code: 	        String typeLiteralOptions = vreq.getParameter("roleActivityType_literalOptions");
  	        if (StringUtils.isNotBlank(typeLiteralOptions)) {           
  	            try {
  	                JSONObject json = new JSONObject(typeLiteralOptions);
  	                Set<String> selectOptions = new HashSet<String>();
  	            } catch (JSONException e) {
  	                activityTypeQuery = defaultActivityTypeQuery;
  	            }
  	        }
  	        activityTypeQuery = defaultActivityTypeQuery; // temporary
  	    } else { 
  	        activityTypeQuery = defaultActivityTypeQuery;	    
  	    } 
  	}
  	log.debug("Activity type query: " + activityTypeQuery);
  
negative.code: <jsp:include page="${postForm}"/>
  
  <%!
  
  private static final String VIVO_CORE = "http://vivoweb.org/ontology/core#";
  private static final String  DEFAULT_ACTIVITY_TYPE_QUERY = 
      "PREFIX core: <" + VIVO_CORE + ">\n" +
      "SELECT ?existingActivityType WHERE { \n" +
          "?role core:roleIn ?existingActivity . \n" +
          "?existingActivity a ?existingActivityType . \n" +
      "}"; 
  // The activity type query results must be limited to the values in the activity type select element. 
  // Sometimes the query returns a superclass such as owl:Thing instead. 
  private String getActivityTypeQuery(VitroRequest vreq) {
  
      String activityTypeQuery = null;
  
  	// Select options are subclasses of a specified class
  	String objectClassUri = vreq.getParameter("roleActivityType_objectClassUri");
  	if (StringUtils.isNotBlank(objectClassUri)) { 
  	    log.debug("objectClassUri = " + objectClassUri);
  	    activityTypeQuery = 
  	    "PREFIX core: <" + VIVO_CORE + ">\n" +
  	    "PREFIX rdfs: <" + VitroVocabulary.RDFS + ">\n" +
  	    "SELECT ?existingActivityType WHERE {\n" +
  	        "?role core:roleIn ?existingActivity . \n" +
  