situation:
-method's return type is a nested interface
-after calling this method trying to cast the return
value to an implementation of this nested interface
-->error
java.lang.RuntimeException: cast to given family not
possible
may be the same error as the other cast problems.