question: public void validateDerivedPKClassId ( String attributeName , String expectedType , String referenceClassName ) { if ( m_pkClassIDs . containsKey ( attributeName ) ) { String actualType = m_pkClassIDs . get ( attributeName ) ; if ( actualType . equals ( expectedType ) ) { m_pkClassIDs . remove ( attributeName ) ; } else { throw ValidationException . invalidDerivedCompositePKAttribute ( referenceClassName , getPKClassName ( ) , attributeName , expectedType , actualType ) ; } } }
target:  INTERNAL: This method is used to validate derived id fields only. Re-using the invalid composite pk attribute validation exception would yield an interesting error message. Therefore, this method should be used to validate derived id members. When validating derived ids things are slightly reversed in terms on context. The expectedType passed in should be the boxed type (were applicable).