private void validateType ( DynamicType < ? > dynamicType ) { int size = dynamicType . getMetadata ( ) . size ( ) ; if ( size == 1 ) { if ( dynamicType . isAbstract ( ) ) { throw new XOException ( "Cannot create an instance of a single abstract type " + dynamicType ) ; } } else if ( dynamicType . isFinal ( ) ) { throw new XOException ( "Cannot create an instance overriding a final type " + dynamicType ) ; } }
Validates the given types .