private Value < D > getPropertyFromContainer ( final FullEntity < ? > container , final Path containerPath ) { String foundName = null ; Value < D > value = null ; for ( String name : property . getLoadNames ( ) ) { if ( container . contains ( name ) ) { if ( foundName != null ) throw new IllegalStateException ( "Collision trying to load field; multiple name matches for '" + property . getName ( ) + "' at '" + containerPath . extend ( foundName ) + "' and '" + containerPath . extend ( name ) + "'" ) ; //noinspection unchecked value = container . getValue ( name ) ; foundName = name ; } } if ( foundName == null ) throw new SkipException ( ) ; else return value ; }
Gets the relevant property from the container detecting alsoload collisions .