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 ; }
Get the main interface of the type .