code: public void setType(String type) throws PageException {
  	if (type == null) return;
  	try {
  	    this.type = toType(type);
  	}
  	catch (SearchException e) {
  	    throw Caster.toPageException(e);
  	}
      }
docs: set the value type Specifies the type of entity being indexed. Default is CUSTOM.
  
  @param type value to set
  @throws PageException