code: public static Class normalizeType(Class type) {
  		SimonType simonType = SimonTypeFactory.getValueFromType(type);
  		Class normalizedType;
  		if (simonType == null) {
  			simonType = SimonTypeFactory.getValueFromSampleType(type);
  			if (simonType == null) {
  				normalizedType = type;
  			} else {
  				normalizedType = simonType.getSampleType();
  			}
  		} else {
  			normalizedType = simonType.getType();
  		}
  		return normalizedType;
  	}
docs: Get the main interface of the type.
  
  @param type Implementation class
  @return Main interface class