Buggy code:
public static < T > T fromRdf ( Class < T > theClass , java . net . URI theURI , DataSource theSource ) throws InvalidRdfException , DataSourceException { } public static < T > T fromRdf ( Class < T > theClass , SupportsRdfId . RdfKey theId , DataSource theSource ) throws InvalidRdfException , DataSourceException { } @ SuppressWarnings ( "unchecked" ) private static < T > Class < T > determineClass ( Class < T > theOrigClass , T theObj , DataSource theSource ) throws InvalidRdfException , DataSourceException { } @ SuppressWarnings ( "unchecked" ) private static synchronized < T > T fromRdf ( T theObj , DataSource theSource ) throws InvalidRdfException , DataSourceException { } public static Map < URI , AccessibleObject > cacheAccessibles ( Class theClass , final Resource aRes ) { } private static RdfsClass asValidRdfClass ( Object theObj ) throws InvalidRdfException { } private static SupportsRdfId asSupportsRdfId ( Object theObj ) throws InvalidRdfException { } private static EmpireGenerated asEmpireGenerated ( Object theObj ) throws InvalidRdfException { } public static Resource id ( Object theObj ) throws InvalidRdfException { } public static void addNamespaces ( Class < ? > theObj ) { } public static Graph asRdf ( final Object theObj ) throws InvalidRdfException { } private static List < Value > asList ( AccessibleObject theAccess , Collection < ? > theCollection ) throws InvalidRdfException { } private static String hash ( Object theObj ) { } private static class CollectionProxyHandler implements MethodHandler { private RdfGenerator . CollectionProxy mProxy ; private CollectionProxyHandler ( final RdfGenerator . CollectionProxy theProxy ) { } public Object invoke ( final Object theThis , final Method theMethod , final Method theProxyMethod , final Object [ ] theArgs ) throws Throwable { } } private static class CollectionProxy { private Collection mCollection ; private AccessibleObject mField ; private Collection < Value > theList ; private RdfGenerator . ValueToObject valueToObject ; public CollectionProxy ( final AccessibleObject theField , final Collection < Value > theTheList , final RdfGenerator . ValueToObject theValueToObject ) { } private void init ( ) { } public Collection value ( ) { } } @ Deprecated public static final boolean PROXY_COLLECTIONS = false ; private static class ToObjectFunction implements Function < Collection < Value > , Object > { private RdfGenerator . ValueToObject valueToObject ; private AccessibleObject mField ; public ToObjectFunction ( final DataSource theSource , Resource theResource , final AccessibleObject theField , final URI theProp ) { } public Object apply ( final Collection < Value > theList ) { } } private static String getLanguageForLocale ( ) { } private static Class refineClass ( final Object theAccessor , final Class theClass , final DataSource theSource , final Resource theId ) { } public static class ValueToObject implements Function < Value , Object > { static final List < URI > integerTypes = Arrays . asList ( INT , INTEGER , POSITIVE_INTEGER , NEGATIVE_INTEGER , NON_NEGATIVE_INTEGER , NON_POSITIVE_INTEGER , UNSIGNED_INT ) ; static final List < URI > longTypes = Arrays . asList ( LONG , UNSIGNED_LONG ) ; static final List < URI > floatTypes = Arrays . asList ( FLOAT , DECIMAL ) ; static final List < URI > shortTypes = Arrays . asList ( SHORT , UNSIGNED_SHORT ) ; static final List < URI > byteTypes = Arrays . asList ( BYTE , UNSIGNED_BYTE ) ; private URI mProperty ; private Object mAccessor ; private DataSource mSource ; private Resource mResource ; public ValueToObject ( final DataSource theSource , Resource theResource , final Object theAccessor , final URI theProp ) { } public Object apply ( final Value theValue ) { } } private static List < Value > asList ( DataSource theSource , Resource theRes ) throws DataSourceException { } private static final MethodFilter METHOD_FILTER = new MethodFilter ( ) { public boolean isHandled ( final Method theMethod ) { } } ; @ SuppressWarnings ( "unchecked" ) private static < T > T getProxyOrDbObject ( Object theAccessor , Class < T > theClass , Object theKey , DataSource theSource ) throws Exception { <START_BUG> if ( BeanReflectUtil . isFetchTypeLazy ( theAccessor , theClass ) ) { <END_BUG> Proxy < T > aProxy = new Proxy < T > ( theClass , asPrimaryKey ( theKey ) , theSource ) ; ProxyFactory aFactory = new ProxyFactory ( ) ; aFactory . setInterfaces ( ObjectArrays . concat ( theClass . getInterfaces ( ) , EmpireGenerated . class ) ) ; if ( ! ( theClass . isInterface ( ) ) ) { aFactory . setSuperclass ( theClass ) ; } aFactory . setFilter ( RdfGenerator . METHOD_FILTER ) ; final RdfGenerator . ProxyHandler < T > aHandler = new RdfGenerator . ProxyHandler < T > ( aProxy ) ; Object aObj = aFactory . createClass ( RdfGenerator . METHOD_FILTER ) . newInstance ( ) ; ( ( javassist . util . proxy . ProxyObject ) ( aObj ) ) . setHandler ( aHandler ) ; return ( ( T ) ( aObj ) ) ; } else { return RdfGenerator . fromRdf ( theClass , asPrimaryKey ( theKey ) , theSource ) ; } } public static class ProxyHandler < T > implements MethodHandler { private Proxy < T > mProxy ; private ProxyHandler ( final Proxy < T > theProxy ) { } public Proxy < T > getProxy ( ) { } public Object invoke ( final Object theThis , final Method theMethod , final Method theProxyMethod , final Object [ ] theArgs ) throws Throwable { } } private static String getBNodeConstructQuery ( DataSource theSource , Resource theRes , URI theProperty ) { } public static class AsValueFunction implements Function < Object , Value > { private AccessibleObject mField ; private RdfProperty annotation ; public AsValueFunction ( ) { } public AsValueFunction ( final AccessibleObject theField ) { } public Value apply ( final Object theIn ) { }

Fix:
if ( BeanReflectUtil . isFetchTypeLazy ( theAccessor ) ) {