code: @Override
  	protected Type getTypeToSerialize() {
  
  		if (contentType != null) {
  
  			switch (contentType) {
  
  				case "application/x-structr-javascript":
  				case "application/x-structr-script":
  					return Type.Function;
  
  				case "application/x-cypher":
  					return Type.Cypher;
  
  			}
  		}
  
  		return Type.Function;
  	}
docs: ----- protected methods -----